Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.001149, allocations: 102.3 kB / 16.4 MB, free: 6.457 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.001384/0.001384, allocations: 191.8 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.657/1.657, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2701/0.2701, allocations: 43.53 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 63.91 kB / 441.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1486, allocations: 57.78 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01472/0.1634, allocations: 11.64 MB / 0.4992 GB, free: 108 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.1739, allocations: 3.953 MB / 0.5031 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003668/0.1776, allocations: 63.69 kB / 0.5032 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004269/0.182, allocations: 0.8692 MB / 0.504 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007019/0.189, allocations: 0.9551 MB / 0.5049 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002589/0.1917, allocations: 0.5149 MB / 0.5054 GB, free: 9.719 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007695/0.1994, allocations: 3.333 MB / 0.5087 GB, free: 6.371 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007203/0.2066, allocations: 2.985 MB / 0.5116 GB, free: 3.324 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004015/0.2107, allocations: 1.542 MB / 0.5131 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005935/0.2166, allocations: 2.008 MB / 0.5151 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002585/0.2192, allocations: 428 kB / 0.5155 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003785/0.2231, allocations: 0.5311 MB / 0.516 GB, free: 14.81 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003721/0.2268, allocations: 1.227 MB / 0.5172 GB, free: 13.58 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006206/0.2331, allocations: 1.894 MB / 0.5191 GB, free: 11.68 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01087/0.244, allocations: 5.582 MB / 0.5245 GB, free: 6.078 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/0.244, allocations: 0 / 0.5245 GB, free: 6.078 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.907e-06/0.244, allocations: 4 kB / 0.5245 GB, free: 6.074 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003272/0.2444, allocations: 0 / 0.5245 GB, free: 6.074 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01489/0.2593, allocations: 3.923 MB / 0.5283 GB, free: 2.078 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.149e-05/0.2594, allocations: 15.89 kB / 0.5284 GB, free: 2.062 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002037/0.2614, allocations: 406.6 kB / 0.5287 GB, free: 1.664 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3586/0.62, allocations: 1.972 MB / 0.5307 GB, free: 36.75 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003479/0.6204, allocations: 218.2 kB / 0.5309 GB, free: 36.75 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001574/0.622, allocations: 286 kB / 0.5312 GB, free: 36.75 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008841/0.6308, allocations: 3.727 MB / 0.5348 GB, free: 36.33 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.411e-05/0.6309, allocations: 9.422 kB / 0.5348 GB, free: 36.33 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002454/0.6312, allocations: 113.9 kB / 0.5349 GB, free: 36.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002004/0.6314, allocations: 141.6 kB / 0.535 GB, free: 36.23 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005828/0.6372, allocations: 3.168 MB / 0.5381 GB, free: 35.11 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02052/0.6578, allocations: 11.47 MB / 0.5493 GB, free: 29.56 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003625/0.6615, allocations: 2.169 MB / 0.5515 GB, free: 28.21 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00195/0.6634, allocations: 1.222 MB / 0.5527 GB, free: 27.63 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002944/0.6637, allocations: 217.6 kB / 0.5529 GB, free: 27.43 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.6638, allocations: 45.97 kB / 0.5529 GB, free: 27.38 MB / 414.1 MB Notification: Performance of pre-optimization done (n=139): time 4.909e-06/0.6638, allocations: 1.125 kB / 0.5529 GB, free: 27.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01761/0.6814, allocations: 8.253 MB / 0.561 GB, free: 22.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/0.6815, allocations: 71.16 kB / 0.561 GB, free: 22.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00284/0.6844, allocations: 1.945 MB / 0.5629 GB, free: 21.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001067/0.6845, allocations: 49.61 kB / 0.563 GB, free: 21.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007216/0.6852, allocations: 1.388 MB / 0.5643 GB, free: 20.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003678/0.6856, allocations: 0.5483 MB / 0.5649 GB, free: 20.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005278/0.6861, allocations: 323.1 kB / 0.5652 GB, free: 20.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.806e-05/0.6862, allocations: 307.2 kB / 0.5655 GB, free: 19.72 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.6873, allocations: 0.8826 MB / 0.5663 GB, free: 18.92 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.6886, allocations: 1.341 MB / 0.5676 GB, free: 17.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002429/0.691, allocations: 2.396 MB / 0.57 GB, free: 14.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.691, allocations: 5.531 kB / 0.57 GB, free: 14.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004037/0.6951, allocations: 2.941 MB / 0.5729 GB, free: 11.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.6951, allocations: 15.94 kB / 0.5729 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/0.6951, allocations: 12.41 kB / 0.5729 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00078/0.6959, allocations: 388.8 kB / 0.5733 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/0.6974, allocations: 447.3 kB / 0.5737 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004437/0.7018, allocations: 6.76 MB / 0.5803 GB, free: 3.805 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001807/0.7036, allocations: 127.9 kB / 0.5804 GB, free: 3.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/0.7038, allocations: 75.38 kB / 0.5805 GB, free: 3.609 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (206): * Single equations (assignments): 202 * 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,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001587/0.7053, allocations: 0.9108 MB / 0.5814 GB, free: 2.688 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004365/0.7058, allocations: 214.6 kB / 0.5816 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00449/0.7103, allocations: 2.907 MB / 0.5844 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.7103, allocations: 16 kB / 0.5844 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.095e-05/0.7103, allocations: 12 kB / 0.5844 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-05/0.7104, allocations: 7.969 kB / 0.5845 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/0.7218, allocations: 6.147 MB / 0.5905 GB, free: 9.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/0.7218, allocations: 4 kB / 0.5905 GB, free: 9.266 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/0.7229, allocations: 239.6 kB / 0.5907 GB, free: 9.031 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002222/0.7251, allocations: 0.811 MB / 0.5915 GB, free: 8.215 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000142/0.7253, allocations: 39.98 kB / 0.5915 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01382/0.7391, allocations: 10.76 MB / 0.602 GB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/0.7392, allocations: 4 kB / 0.602 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008096/0.7473, allocations: 4.189 MB / 0.6061 GB, free: 8.734 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/0.7489, allocations: 499.5 kB / 0.6066 GB, free: 8.227 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007405/0.7497, allocations: 36 kB / 0.6066 GB, free: 8.191 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001634/0.7513, allocations: 104.1 kB / 0.6067 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000402/0.7518, allocations: 121 kB / 0.6068 GB, free: 7.973 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.7519, allocations: 47.92 kB / 0.6069 GB, free: 7.926 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002968/0.7549, allocations: 1.34 MB / 0.6082 GB, free: 6.562 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7549, allocations: 0 / 0.6082 GB, free: 6.562 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003153/0.7581, allocations: 0.5742 MB / 0.6088 GB, free: 5.988 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.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 (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (5,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007122/0.7588, allocations: 201.7 kB / 0.609 GB, free: 5.781 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005187/0.764, allocations: 2.636 MB / 0.6115 GB, free: 3.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.764, allocations: 256 / 0.6115 GB, free: 3.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002766/0.7668, allocations: 1.65 MB / 0.6131 GB, free: 1.402 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004002/0.7708, allocations: 0.5349 MB / 0.6137 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01266/0.7835, allocations: 5.843 MB / 0.6194 GB, free: 10.95 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003541/0.7871, allocations: 2.209 MB / 0.6215 GB, free: 8.707 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002241/0.7894, allocations: 465.7 kB / 0.622 GB, free: 8.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009032/0.7903, allocations: 155.4 kB / 0.6221 GB, free: 8.098 MB / 462.1 MB Notification: Performance of SimCode: time 1.422e-06/0.7903, allocations: 0 / 0.6221 GB, free: 8.098 MB / 462.1 MB Notification: Performance of Templates: time 0.06902/0.8593, allocations: 33.36 MB / 0.6547 GB, free: 6.762 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches