Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001724/0.001725, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001844/0.001844, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 63.75 kB / 307.6 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1077, allocations: 50.53 MB / 358.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.1997/0.3075, allocations: 16.51 MB / 374.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01009/0.3176, allocations: 5.63 MB / 380.3 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0038/0.3214, allocations: 108.7 kB / 380.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00343/0.3249, allocations: 1.134 MB / 381.5 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005036/0.33, allocations: 1.323 MB / 382.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002627/0.3326, allocations: 0.9835 MB / 383.8 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005242/0.3379, allocations: 3.968 MB / 387.8 MB, free: 5.758 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005268/0.3432, allocations: 3.624 MB / 391.4 MB, free: 4.238 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003797/0.347, allocations: 1.893 MB / 393.3 MB, free: 3.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003455/0.3504, allocations: 2.332 MB / 395.7 MB, free: 2.254 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001011/0.3515, allocations: 0.5164 MB / 396.2 MB, free: 2.254 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002126/0.3536, allocations: 0.7712 MB / 397 MB, free: 2.172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001107/0.3547, allocations: 1.294 MB / 398.2 MB, free: 1.406 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002769/0.3575, allocations: 2.26 MB / 400.5 MB, free: 15.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007003/0.3645, allocations: 6.864 MB / 407.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3646, allocations: 0 / 407.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3646, allocations: 0 / 407.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001861/0.3648, allocations: 0 / 407.4 MB, free: 10.64 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01115/0.3759, allocations: 4.691 MB / 412.1 MB, free: 5.891 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.376, allocations: 8.031 kB / 412.1 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00309/0.3791, allocations: 0.6891 MB / 412.8 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004362/0.3835, allocations: 2.465 MB / 415.2 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002097/0.3837, allocations: 271.7 kB / 415.5 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005272/0.3842, allocations: 350.4 kB / 415.8 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007874/0.3921, allocations: 4.466 MB / 420.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.573e-05/0.3922, allocations: 8 kB / 420.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004487/0.3927, allocations: 136 kB / 420.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001534/0.3928, allocations: 162.8 kB / 420.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00714/0.4, allocations: 3.747 MB / 424.3 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02551/0.4255, allocations: 14.66 MB / 439 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005436/0.431, allocations: 5.627 MB / 444.6 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002904/0.4339, allocations: 1.563 MB / 446.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008327/0.4423, allocations: 4.21 MB / 450.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.633e-05/0.4424, allocations: 59.75 kB / 450.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 4.007e-06/0.4424, allocations: 0 / 450.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01084/0.4533, allocations: 5.659 MB / 456.1 MB, free: 8.391 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.4533, allocations: 68.66 kB / 456.2 MB, free: 8.309 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004155/0.4575, allocations: 2.115 MB / 458.3 MB, free: 6.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001438/0.4577, allocations: 49.7 kB / 458.4 MB, free: 6.105 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001255/0.4589, allocations: 1.657 MB / 460 MB, free: 4.438 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000439/0.4594, allocations: 469.4 kB / 460.5 MB, free: 3.984 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006114/0.46, allocations: 335.2 kB / 460.8 MB, free: 3.652 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.503e-05/0.4601, allocations: 305.1 kB / 461.1 MB, free: 3.352 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.4614, allocations: 0.734 MB / 461.8 MB, free: 2.617 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/0.463, allocations: 1.364 MB / 463.2 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002968/0.466, allocations: 2.25 MB / 465.4 MB, free: 14.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.909e-05/0.466, allocations: 8 kB / 465.4 MB, free: 14.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005156/0.4711, allocations: 2.6 MB / 468 MB, free: 11.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/0.4712, allocations: 15.94 kB / 468.1 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.758e-05/0.4712, allocations: 20 kB / 468.1 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005125/0.4718, allocations: 198.9 kB / 468.3 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001624/0.4734, allocations: 455.3 kB / 468.7 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003397/0.4768, allocations: 3.788 MB / 472.5 MB, free: 7.035 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001761/0.4786, allocations: 115.9 kB / 472.6 MB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001717/0.4788, allocations: 83.98 kB / 472.7 MB, free: 6.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (224): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001924/0.4807, allocations: 1.048 MB / 473.8 MB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005727/0.4813, allocations: 221.2 kB / 474 MB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0041/0.4854, allocations: 2.264 MB / 476.2 MB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.4854, allocations: 16 kB / 476.2 MB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/0.4855, allocations: 8 kB / 476.3 MB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.638e-05/0.4855, allocations: 7.969 kB / 476.3 MB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009721/0.4952, allocations: 5.301 MB / 481.6 MB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.866e-06/0.4952, allocations: 0 / 481.6 MB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009997/0.4963, allocations: 231.9 kB / 481.8 MB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008533/0.4971, allocations: 327.3 kB / 482.1 MB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.4973, allocations: 32 kB / 482.1 MB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007368/0.5046, allocations: 8.242 MB / 490.4 MB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.5047, allocations: 4.031 kB / 490.4 MB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00528/0.5099, allocations: 3.276 MB / 493.7 MB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/0.5112, allocations: 466.2 kB / 494.1 MB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006436/0.5118, allocations: 28 kB / 494.1 MB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/0.5133, allocations: 71.92 kB / 494.2 MB, free: 480 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002233/0.5135, allocations: 93.06 kB / 494.3 MB, free: 384 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.378e-05/0.5136, allocations: 39.98 kB / 494.3 MB, free: 344 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002972/0.5166, allocations: 1.443 MB / 495.8 MB, free: 14.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5166, allocations: 0 / 495.8 MB, free: 14.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002518/0.5191, allocations: 0.5664 MB / 496.4 MB, free: 14.31 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,8,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004211/0.5196, allocations: 172.4 kB / 496.5 MB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005179/0.5247, allocations: 2.616 MB / 499.1 MB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.804e-06/0.5248, allocations: 0 / 499.1 MB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002256/0.527, allocations: 1.42 MB / 0.4888 GB, free: 10 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003626/0.5307, allocations: 0.5712 MB / 0.4894 GB, free: 9.445 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/0.5436, allocations: 6.174 MB / 0.4954 GB, free: 3.215 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00318/0.5468, allocations: 2.373 MB / 0.4977 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008119/0.5476, allocations: 179.3 kB / 0.4979 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of SimCode: time 1.262e-06/0.5476, allocations: 0 / 0.4979 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of Templates: time 0.2844/0.832, allocations: 100.2 MB / 0.5958 GB, free: 94.43 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches