Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.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.Blocks.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous") translateModel(ModelicaTest.Blocks.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 103 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 184.1 kB / 16.92 MB, free: 6.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.23/2.23, allocations: 205.4 MB / 223.1 MB, free: 5.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5171/0.5171, allocations: 43.58 MB / 315 MB, free: 9.078 MB / 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.0005254/0.0005255, allocations: 12.61 kB / 384.6 MB, free: 7.871 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1521, allocations: 58.87 MB / 443.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.004168/0.1563, allocations: 2.97 MB / 446.4 MB, free: 9.906 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003929/0.1603, allocations: 1.544 MB / 448 MB, free: 8.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004074/0.1607, allocations: 23.88 kB / 448 MB, free: 8.328 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004818/0.1612, allocations: 111.2 kB / 448.1 MB, free: 8.219 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004669/0.1617, allocations: 167 kB / 448.3 MB, free: 8.055 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001401/0.1631, allocations: 491.3 kB / 448.7 MB, free: 7.574 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001239/0.1643, allocations: 0.8613 MB / 449.6 MB, free: 6.711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000555/0.1649, allocations: 222.4 kB / 449.8 MB, free: 6.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005927/0.1655, allocations: 298.4 kB / 450.1 MB, free: 6.188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005829/0.1661, allocations: 350.1 kB / 450.4 MB, free: 5.844 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.559e-05/0.1662, allocations: 20 kB / 450.5 MB, free: 5.824 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.176e-05/0.1663, allocations: 20 kB / 450.5 MB, free: 5.805 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002339/0.1665, allocations: 163.3 kB / 450.6 MB, free: 5.645 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003318/0.1669, allocations: 319.5 kB / 451 MB, free: 5.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008482/0.1677, allocations: 0.6964 MB / 451.7 MB, free: 4.625 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1677, allocations: 0 / 451.7 MB, free: 4.625 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1678, allocations: 0 / 451.7 MB, free: 4.625 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.1678, allocations: 0 / 451.7 MB, free: 4.625 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002588/0.1704, allocations: 1.055 MB / 452.7 MB, free: 3.516 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.862e-05/0.1704, allocations: 8.031 kB / 452.7 MB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.1706, allocations: 95.81 kB / 452.8 MB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.1716, allocations: 0.5623 MB / 453.4 MB, free: 2.809 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.573e-05/0.1717, allocations: 37.38 kB / 453.4 MB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.1718, allocations: 56.38 kB / 453.5 MB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/0.173, allocations: 0.6332 MB / 454.1 MB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.765e-05/0.173, allocations: 7.906 kB / 454.1 MB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.351e-05/0.1731, allocations: 20 kB / 454.1 MB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.618e-05/0.1731, allocations: 12 kB / 454.1 MB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.1742, allocations: 497.8 kB / 454.6 MB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3618/0.536, allocations: 2.689 MB / 457.3 MB, free: 45.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.5371, allocations: 0.5827 MB / 457.9 MB, free: 45.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005143/0.5377, allocations: 274.7 kB / 458.2 MB, free: 45.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.478e-05/0.5377, allocations: 9.969 kB / 458.2 MB, free: 45.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.5378, allocations: 36.5 kB / 458.2 MB, free: 45.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 2.695e-06/0.5378, allocations: 0 / 458.2 MB, free: 45.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.002427/0.5402, allocations: 1.212 MB / 459.4 MB, free: 44.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.094e-05/0.5403, allocations: 131.5 kB / 459.5 MB, free: 44.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007811/0.5411, allocations: 0.6627 MB / 460.2 MB, free: 44.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.474e-05/0.5411, allocations: 35.17 kB / 460.2 MB, free: 44.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002239/0.5414, allocations: 359.1 kB / 460.6 MB, free: 44.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.5415, allocations: 174 kB / 460.8 MB, free: 44.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.697e-05/0.5416, allocations: 67.98 kB / 460.8 MB, free: 44.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.752e-05/0.5417, allocations: 336.7 kB / 461.2 MB, free: 44.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005764/0.5422, allocations: 287 kB / 461.4 MB, free: 44.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006838/0.5429, allocations: 447.1 kB / 461.9 MB, free: 43.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.5442, allocations: 0.7226 MB / 462.6 MB, free: 43.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.5442, allocations: 2.875 kB / 462.6 MB, free: 43.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001627/0.5459, allocations: 0.8377 MB / 463.4 MB, free: 43.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001285/0.546, allocations: 228.8 kB / 463.7 MB, free: 43.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.546, allocations: 9.375 kB / 463.7 MB, free: 43.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.752e-05/0.5461, allocations: 5.719 kB / 463.7 MB, free: 43.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006405/0.5467, allocations: 172.1 kB / 463.8 MB, free: 43.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.5467, allocations: 8.562 kB / 463.9 MB, free: 43.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005216/0.5473, allocations: 88.48 kB / 463.9 MB, free: 43.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.998e-05/0.5473, allocations: 23.09 kB / 464 MB, free: 43.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.222e-06/0.5473, allocations: 2.938 kB / 464 MB, free: 43.27 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00134/0.5487, allocations: 0.718 MB / 464.7 MB, free: 43.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.5487, allocations: 8.328 kB / 464.7 MB, free: 43.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.143e-06/0.5487, allocations: 5.844 kB / 464.7 MB, free: 43.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005493/0.5493, allocations: 159.1 kB / 464.9 MB, free: 43.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.5493, allocations: 10.36 kB / 464.9 MB, free: 43.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00047/0.5498, allocations: 86.36 kB / 464.9 MB, free: 43.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.707e-05/0.5498, allocations: 26.53 kB / 465 MB, free: 43.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003576/0.5502, allocations: 299.6 kB / 465.3 MB, free: 42.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.5503, allocations: 70.12 kB / 465.3 MB, free: 42.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002004/0.5505, allocations: 91.19 kB / 465.4 MB, free: 42.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.5505, allocations: 7.469 kB / 465.4 MB, free: 42.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.5506, allocations: 0 / 465.4 MB, free: 42.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.5506, allocations: 7.172 kB / 465.4 MB, free: 42.92 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/0.5519, allocations: 0.8581 MB / 466.3 MB, free: 42.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.5519, allocations: 0 / 466.3 MB, free: 42.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005744/0.5525, allocations: 123 kB / 466.4 MB, free: 42.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.5525, allocations: 0 / 466.4 MB, free: 42.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.018e-05/0.5526, allocations: 20.56 kB / 466.4 MB, free: 42.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.5526, allocations: 3.156 kB / 466.4 MB, free: 42.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.5526, allocations: 0 / 466.4 MB, free: 42.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/0.5544, allocations: 1.204 MB / 467.6 MB, free: 42.24 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002013/0.5546, allocations: 200.1 kB / 467.8 MB, free: 42.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.779e-05/0.5547, allocations: 18.86 kB / 467.9 MB, free: 42.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005018/0.5552, allocations: 69.22 kB / 467.9 MB, free: 42.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.796e-05/0.5553, allocations: 39.42 kB / 468 MB, free: 42.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-05/0.5553, allocations: 13.41 kB / 468 MB, free: 42.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005666/0.5559, allocations: 469.8 kB / 468.4 MB, free: 41.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5559, allocations: 0 / 468.4 MB, free: 41.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007747/0.5567, allocations: 191.1 kB / 468.6 MB, free: 41.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.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 (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001289/0.5568, allocations: 116.9 kB / 468.7 MB, free: 41.74 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001926/0.5587, allocations: 1.016 MB / 469.8 MB, free: 41.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.5588, allocations: 0 / 469.8 MB, free: 41.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005987/0.5594, allocations: 305.6 kB / 470.1 MB, free: 41.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.5605, allocations: 170.7 kB / 470.2 MB, free: 41.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.563, allocations: 1.82 MB / 472 MB, free: 40.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004503/0.5635, allocations: 0.9503 MB / 473 MB, free: 39.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005152/0.564, allocations: 143.1 kB / 473.1 MB, free: 39.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001576/0.5642, allocations: 47.38 kB / 473.2 MB, free: 39.56 MB / 382.1 MB Notification: Performance of SimCode: time 1.392e-06/0.5642, allocations: 0 / 473.2 MB, free: 39.56 MB / 382.1 MB Notification: Performance of Templates: time 0.01542/0.5796, allocations: 6.786 MB / 480 MB, free: 39.14 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Continuous/Continuous.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches