Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001575/0.001575, allocations: 110.6 kB / 16.62 MB, free: 6.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001915/0.001916, allocations: 190 kB / 17.54 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00107/0.00107, allocations: 45.44 kB / 300.1 MB, free: 6.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1171, allocations: 49.44 MB / 349.6 MB, free: 4.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01377/0.1309, allocations: 11.79 MB / 361.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008905/0.1399, allocations: 3.918 MB / 365.3 MB, free: 4.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002469/0.1425, allocations: 71.69 kB / 365.4 MB, free: 4.883 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002827/0.1453, allocations: 0.7691 MB / 366.1 MB, free: 4.109 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004358/0.1498, allocations: 0.8549 MB / 367 MB, free: 3.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001766/0.1516, allocations: 0.4956 MB / 367.5 MB, free: 2.754 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2195/0.3711, allocations: 3.383 MB / 370.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004688/0.3758, allocations: 3.092 MB / 374 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002784/0.3786, allocations: 1.586 MB / 375.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004091/0.3828, allocations: 2.07 MB / 377.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001175/0.384, allocations: 438.1 kB / 378 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001549/0.3855, allocations: 0.5362 MB / 378.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001514/0.3871, allocations: 1.264 MB / 379.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004276/0.3913, allocations: 1.937 MB / 381.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009551/0.4009, allocations: 5.603 MB / 387.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.326e-05/0.401, allocations: 5.312 kB / 387.4 MB, free: 6.902 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.401, allocations: 0 / 387.4 MB, free: 6.902 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003276/0.4013, allocations: 0 / 387.4 MB, free: 6.902 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.01181/0.4131, allocations: 3.935 MB / 391.3 MB, free: 4.234 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.4132, allocations: 9.344 kB / 391.3 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001231/0.4144, allocations: 401.3 kB / 391.7 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003777/0.4182, allocations: 2.063 MB / 393.8 MB, free: 2.688 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002117/0.4185, allocations: 239.7 kB / 394 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000575/0.419, allocations: 298.5 kB / 394.3 MB, free: 2.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008232/0.4273, allocations: 3.85 MB / 398.2 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.56e-05/0.4274, allocations: 8.938 kB / 398.2 MB, free: 224 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002808/0.4277, allocations: 118.7 kB / 398.3 MB, free: 132 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001533/0.4279, allocations: 155 kB / 398.4 MB, free: 100 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006427/0.4343, allocations: 3.257 MB / 401.7 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02671/0.461, allocations: 12.15 MB / 413.8 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002792/0.4639, allocations: 1.937 MB / 415.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001942/0.4658, allocations: 1.164 MB / 416.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003476/0.4662, allocations: 214.6 kB / 417.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.394e-05/0.4662, allocations: 43.88 kB / 417.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 4.679e-06/0.4663, allocations: 0 / 417.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01624/0.4825, allocations: 7.008 MB / 424.2 MB, free: 6.719 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/0.4826, allocations: 72.72 kB / 424.3 MB, free: 6.637 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004872/0.4875, allocations: 2.032 MB / 426.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003434/0.4878, allocations: 49.7 kB / 426.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001276/0.4891, allocations: 1.462 MB / 427.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007487/0.4899, allocations: 0.5292 MB / 428.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008633/0.4908, allocations: 355.2 kB / 428.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.811e-05/0.4909, allocations: 305.1 kB / 429 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001581/0.4925, allocations: 0.8818 MB / 429.9 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00185/0.4943, allocations: 1.446 MB / 431.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003538/0.4979, allocations: 2.51 MB / 433.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.088e-05/0.4979, allocations: 8 kB / 433.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00558/0.5035, allocations: 3.004 MB / 436.8 MB, free: 9.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.66e-05/0.5036, allocations: 14.66 kB / 436.9 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.892e-05/0.5036, allocations: 20 kB / 436.9 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.5047, allocations: 393.7 kB / 437.3 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001832/0.5065, allocations: 472.4 kB / 437.7 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006391/0.5129, allocations: 6.71 MB / 444.4 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002459/0.5154, allocations: 135.8 kB / 444.6 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000371/0.5158, allocations: 83.98 kB / 444.6 MB, free: 1.516 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002222/0.518, allocations: 0.925 MB / 445.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007456/0.5188, allocations: 225.2 kB / 445.8 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005361/0.5242, allocations: 2.592 MB / 448.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.149e-05/0.5242, allocations: 19.94 kB / 448.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-05/0.5242, allocations: 4 kB / 448.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.018e-05/0.5243, allocations: 11.97 kB / 448.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01498/0.5392, allocations: 5.853 MB / 454.3 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/0.5393, allocations: 4.5 kB / 454.3 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001324/0.5406, allocations: 289.6 kB / 454.6 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001084/0.5417, allocations: 414.3 kB / 455 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001823/0.5419, allocations: 43.98 kB / 455 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007872/0.5498, allocations: 8.253 MB / 463.3 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.5499, allocations: 7.375 kB / 463.3 MB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006886/0.5568, allocations: 3.834 MB / 467.1 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00151/0.5583, allocations: 490.2 kB / 467.6 MB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009011/0.5592, allocations: 39.98 kB / 467.6 MB, free: 9.855 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001707/0.561, allocations: 91.89 kB / 467.7 MB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003013/0.5613, allocations: 119.9 kB / 467.8 MB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.5614, allocations: 44 kB / 467.9 MB, free: 9.609 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003134/0.5646, allocations: 1.382 MB / 469.2 MB, free: 8.207 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5646, allocations: 0 / 469.2 MB, free: 8.207 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003082/0.5677, allocations: 0.5704 MB / 469.8 MB, free: 7.637 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (146): * Single equations (assignments): 142 * 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 {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000547/0.5682, allocations: 221.1 kB / 470 MB, free: 7.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006816/0.5751, allocations: 3.542 MB / 473.6 MB, free: 3.906 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.5751, allocations: 0 / 473.6 MB, free: 3.906 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002409/0.5775, allocations: 1.567 MB / 475.1 MB, free: 2.328 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003862/0.5814, allocations: 0.5499 MB / 475.7 MB, free: 1.781 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01382/0.5952, allocations: 7.238 MB / 482.9 MB, free: 10.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003311/0.5986, allocations: 2.259 MB / 485.2 MB, free: 8.191 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002464/0.6011, allocations: 0.5259 MB / 485.7 MB, free: 7.664 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008747/0.602, allocations: 159.4 kB / 485.9 MB, free: 7.508 MB / 398.1 MB Notification: Performance of SimCode: time 1.352e-06/0.602, allocations: 0 / 485.9 MB, free: 7.508 MB / 398.1 MB Notification: Performance of Templates: time 0.06158/0.6636, allocations: 30.83 MB / 0.5046 GB, free: 9.07 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches