Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json 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) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) 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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_4.0.0_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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 222.9 MB / 241.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 104.9 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4565/0.4565, allocations: 44.13 MB / 386.1 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00177/0.00177, allocations: 59.91 kB / 457.7 MB, free: 2.293 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.399/0.4008, allocations: 60.81 MB / 0.5064 GB, free: 38.42 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.009848/0.4107, allocations: 11.56 MB / 0.5177 GB, free: 30.18 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.006832/0.4176, allocations: 3.869 MB / 0.5215 GB, free: 27.35 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002308/0.4199, allocations: 66.09 kB / 0.5215 GB, free: 27.33 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002558/0.4225, allocations: 0.7591 MB / 0.5223 GB, free: 26.94 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00309/0.4257, allocations: 0.8557 MB / 0.5231 GB, free: 26.41 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001149/0.4268, allocations: 465.7 kB / 0.5235 GB, free: 26.09 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003875/0.4307, allocations: 3.673 MB / 0.5271 GB, free: 24.48 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002867/0.4336, allocations: 2.583 MB / 0.5297 GB, free: 23.32 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002053/0.4357, allocations: 1.37 MB / 0.531 GB, free: 22.71 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002538/0.4382, allocations: 1.916 MB / 0.5329 GB, free: 21.88 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005408/0.4388, allocations: 259.9 kB / 0.5331 GB, free: 21.88 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009287/0.4397, allocations: 380.2 kB / 0.5335 GB, free: 21.85 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007952/0.4405, allocations: 1.06 MB / 0.5345 GB, free: 21.35 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001739/0.4423, allocations: 1.716 MB / 0.5362 GB, free: 20.26 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004044/0.4463, allocations: 5.362 MB / 0.5414 GB, free: 18.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.4464, allocations: 3.891 kB / 0.5414 GB, free: 18.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.4464, allocations: 0 / 0.5414 GB, free: 18.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001725/0.4466, allocations: 0 / 0.5414 GB, free: 18.38 MB / 378.7 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.008479/0.455, allocations: 3.839 MB / 0.5452 GB, free: 16.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.4551, allocations: 9.625 kB / 0.5452 GB, free: 16.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009822/0.4561, allocations: 389 kB / 0.5455 GB, free: 16.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004092/0.4602, allocations: 2.019 MB / 0.5475 GB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002136/0.4604, allocations: 230.1 kB / 0.5477 GB, free: 14.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005845/0.461, allocations: 282.4 kB / 0.548 GB, free: 14.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006891/0.4679, allocations: 3.73 MB / 0.5517 GB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.279e-05/0.468, allocations: 12.77 kB / 0.5517 GB, free: 13.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000241/0.4683, allocations: 112.1 kB / 0.5518 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001513/0.4684, allocations: 141.2 kB / 0.5519 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005314/0.4737, allocations: 3.176 MB / 0.555 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01595/0.4897, allocations: 11.58 MB / 0.5663 GB, free: 2.148 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002999/0.4927, allocations: 2.179 MB / 0.5684 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001877/0.4946, allocations: 1.224 MB / 0.5696 GB, free: 14.63 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002942/0.4949, allocations: 215.4 kB / 0.5698 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.823e-05/0.495, allocations: 51.86 kB / 0.5699 GB, free: 14.32 MB / 394.7 MB Notification: Performance of pre-optimization done (n=139): time 2.925e-06/0.495, allocations: 0 / 0.5699 GB, free: 14.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=154): time 0.01689/0.5119, allocations: 7.855 MB / 0.5776 GB, free: 6.398 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.512, allocations: 72.7 kB / 0.5776 GB, free: 6.316 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003051/0.515, allocations: 1.933 MB / 0.5795 GB, free: 4.34 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002182/0.5153, allocations: 57.64 kB / 0.5796 GB, free: 4.277 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009507/0.5162, allocations: 1.359 MB / 0.5809 GB, free: 2.902 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005516/0.5168, allocations: 0.5276 MB / 0.5814 GB, free: 2.367 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005342/0.5173, allocations: 319.3 kB / 0.5817 GB, free: 2.051 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.5175, allocations: 305.1 kB / 0.582 GB, free: 1.75 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001323/0.5188, allocations: 0.8862 MB / 0.5829 GB, free: 0.8633 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001597/0.5204, allocations: 1.344 MB / 0.5842 GB, free: 15.33 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003084/0.5235, allocations: 2.381 MB / 0.5865 GB, free: 12.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.5235, allocations: 4 kB / 0.5865 GB, free: 12.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004795/0.5283, allocations: 2.94 MB / 0.5894 GB, free: 9.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/0.5284, allocations: 8 kB / 0.5894 GB, free: 9.762 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.676e-05/0.5284, allocations: 16 kB / 0.5894 GB, free: 9.746 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009441/0.5293, allocations: 403.3 kB / 0.5898 GB, free: 9.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/0.531, allocations: 443.3 kB / 0.5902 GB, free: 8.906 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005727/0.5367, allocations: 6.206 MB / 0.5963 GB, free: 2.301 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001652/0.5384, allocations: 123.8 kB / 0.5964 GB, free: 2.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001999/0.5386, allocations: 75.98 kB / 0.5965 GB, free: 2.105 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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.00154/0.5401, allocations: 0.9031 MB / 0.5974 GB, free: 1.191 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005249/0.5407, allocations: 209.4 kB / 0.5976 GB, free: 0.9844 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005458/0.5461, allocations: 2.907 MB / 0.6004 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.5462, allocations: 16 kB / 0.6004 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.636e-05/0.5462, allocations: 8 kB / 0.6004 GB, free: 14.03 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-05/0.5462, allocations: 11.97 kB / 0.6004 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01183/0.5581, allocations: 6.143 MB / 0.6064 GB, free: 7.746 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.5581, allocations: 12 kB / 0.6064 GB, free: 7.734 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.5592, allocations: 239.6 kB / 0.6067 GB, free: 7.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002144/0.5613, allocations: 0.8038 MB / 0.6074 GB, free: 6.688 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001442/0.5615, allocations: 43.98 kB / 0.6075 GB, free: 6.645 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01245/0.574, allocations: 9.827 MB / 0.6171 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.574, allocations: 8.031 kB / 0.6171 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05701/0.631, allocations: 31.6 MB / 0.648 GB, free: 12.13 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001524/0.6326, allocations: 486.3 kB / 0.6484 GB, free: 11.63 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006069/0.6332, allocations: 36 kB / 0.6485 GB, free: 11.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001412/0.6346, allocations: 95.88 kB / 0.6485 GB, free: 11.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003985/0.6351, allocations: 125 kB / 0.6487 GB, free: 11.38 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001529/0.6352, allocations: 43.98 kB / 0.6487 GB, free: 11.34 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002899/0.6381, allocations: 1.34 MB / 0.65 GB, free: 9.977 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6382, allocations: 0 / 0.65 GB, free: 9.977 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003671/0.6418, allocations: 0.8125 MB / 0.6508 GB, free: 9.164 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.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 (116): * Single equations (assignments): 113 * 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.0004703/0.6423, allocations: 205 kB / 0.651 GB, free: 8.953 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004132/0.6465, allocations: 2.628 MB / 0.6536 GB, free: 6.266 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/0.6465, allocations: 0 / 0.6536 GB, free: 6.266 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002526/0.649, allocations: 1.642 MB / 0.6552 GB, free: 4.582 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002939/0.652, allocations: 0.5081 MB / 0.6557 GB, free: 4.082 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01527/0.6673, allocations: 8.806 MB / 0.6643 GB, free: 11.15 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00314/0.6704, allocations: 2.277 MB / 0.6665 GB, free: 8.844 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002016/0.6725, allocations: 481.7 kB / 0.667 GB, free: 8.371 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000787/0.6733, allocations: 159.4 kB / 0.6671 GB, free: 8.215 MB / 490.7 MB Notification: Performance of SimCode: time 5.11e-07/0.6733, allocations: 0 / 0.6671 GB, free: 8.215 MB / 490.7 MB Notification: Performance of Templates: time 0.3525/1.026, allocations: 40.49 MB / 0.7066 GB, free: 123.1 MB / 490.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches