Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.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) 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 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(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007838/0.0007837, allocations: 93.33 kB / 17.35 MB, free: 6.371 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.000782/0.0007822, allocations: 172.2 kB / 18.25 MB, free: 5.527 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.367/1.367, allocations: 223.3 MB / 242.3 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2004/0.2004, allocations: 44.24 MB / 337.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003461/0.0003461, allocations: 12 kB / 410.3 MB, free: 27.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1251, allocations: 61.92 MB / 472.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.0046/0.1298, allocations: 3.616 MB / 475.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002492/0.1323, allocations: 1.181 MB / 477 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004566/0.1328, allocations: 19.88 kB / 477.1 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002907/0.1331, allocations: 79.23 kB / 477.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005182/0.1336, allocations: 141.7 kB / 477.3 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007299/0.1344, allocations: 358.7 kB / 477.6 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008192/0.1352, allocations: 0.7915 MB / 478.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004244/0.1356, allocations: 272.2 kB / 478.7 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003415/0.136, allocations: 258.6 kB / 478.9 MB, free: 6.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002986/0.1363, allocations: 270.3 kB / 479.2 MB, free: 6.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.829e-05/0.1364, allocations: 20 kB / 479.2 MB, free: 6.336 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.389e-05/0.1364, allocations: 24 kB / 479.2 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.427e-05/0.1365, allocations: 107.3 kB / 479.4 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002421/0.1368, allocations: 319.6 kB / 479.7 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005815/0.1374, allocations: 0.6885 MB / 480.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.1374, allocations: 0 / 480.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1374, allocations: 0 / 480.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.1374, allocations: 0 / 480.4 MB, free: 5.195 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.001574/0.139, allocations: 0.9387 MB / 481.3 MB, free: 4.207 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.139, allocations: 8.031 kB / 481.3 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.1392, allocations: 91.91 kB / 481.4 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006649/0.1399, allocations: 0.5071 MB / 481.9 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.104e-05/0.1399, allocations: 41.62 kB / 481.9 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.879e-05/0.14, allocations: 68.28 kB / 482 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.141, allocations: 0.6195 MB / 482.6 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.1411, allocations: 4 kB / 482.6 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.969e-05/0.1411, allocations: 20 kB / 482.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.1411, allocations: 16 kB / 482.7 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008064/0.142, allocations: 409.9 kB / 483.1 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003804/0.1458, allocations: 3.032 MB / 486.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009758/0.1468, allocations: 472.1 kB / 486.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003606/0.1471, allocations: 186.2 kB / 486.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.164e-05/0.1472, allocations: 4 kB / 486.7 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.1472, allocations: 46.5 kB / 486.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 1.984e-06/0.1472, allocations: 0 / 486.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001233/0.1485, allocations: 0.5677 MB / 487.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.1485, allocations: 114.7 kB / 487.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005691/0.1491, allocations: 0.5392 MB / 488 MB, free: 13.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.711e-05/0.1492, allocations: 33.7 kB / 488 MB, free: 13.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002566/0.1494, allocations: 368 kB / 488.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.1496, allocations: 157.8 kB / 488.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.717e-05/0.1496, allocations: 57.69 kB / 488.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1498, allocations: 386.8 kB / 489 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003988/0.1502, allocations: 189.2 kB / 489.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005356/0.1508, allocations: 405.1 kB / 489.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000945/0.1517, allocations: 0.5961 MB / 490.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.1517, allocations: 0 / 490.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001226/0.153, allocations: 0.672 MB / 490.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002197/0.1532, allocations: 300.7 kB / 491.1 MB, free: 9.738 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.1532, allocations: 8 kB / 491.1 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.1532, allocations: 8 kB / 491.1 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000549/0.1538, allocations: 147.8 kB / 491.3 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.779e-05/0.1538, allocations: 15.94 kB / 491.3 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003932/0.1542, allocations: 79.34 kB / 491.4 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.761e-05/0.1543, allocations: 28 kB / 491.4 MB, free: 9.457 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.573e-06/0.1543, allocations: 4 kB / 491.4 MB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000961/0.1552, allocations: 0.5503 MB / 492 MB, free: 8.902 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.1553, allocations: 8.031 kB / 492 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.937e-06/0.1553, allocations: 12 kB / 492 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004635/0.1557, allocations: 135.8 kB / 492.1 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.1558, allocations: 11.94 kB / 492.1 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.1561, allocations: 63.52 kB / 492.2 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.725e-05/0.1562, allocations: 36 kB / 492.2 MB, free: 8.641 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.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 (78): * Single equations (assignments): 78 * 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.0002646/0.1564, allocations: 280.8 kB / 492.5 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.1565, allocations: 67.16 kB / 492.6 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001466/0.1567, allocations: 70.17 kB / 492.6 MB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.1567, allocations: 4 kB / 492.6 MB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1567, allocations: 0 / 492.6 MB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1567, allocations: 7.938 kB / 492.6 MB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007263/0.1575, allocations: 0.5674 MB / 493.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1575, allocations: 0 / 493.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004961/0.158, allocations: 91.88 kB / 493.3 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.158, allocations: 4 kB / 493.3 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.111e-05/0.158, allocations: 12 kB / 493.3 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.158, allocations: 0 / 493.3 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.158, allocations: 3.938 kB / 493.3 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/0.1594, allocations: 0.8119 MB / 494.1 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001886/0.1596, allocations: 168.3 kB / 494.3 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.328e-05/0.1597, allocations: 12 kB / 494.3 MB, free: 6.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003419/0.16, allocations: 31.97 kB / 494.3 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.219e-05/0.1601, allocations: 35.89 kB / 494.4 MB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.353e-05/0.1601, allocations: 12 kB / 494.4 MB, free: 6.379 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004028/0.1605, allocations: 375.1 kB / 494.8 MB, free: 6.016 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1605, allocations: 4 kB / 494.8 MB, free: 6.012 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007767/0.1613, allocations: 239.2 kB / 495 MB, free: 5.777 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.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 (39): * Single equations (assignments): 39 * 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.0001274/0.1615, allocations: 104.7 kB / 495.1 MB, free: 5.668 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001447/0.1629, allocations: 0.7647 MB / 495.9 MB, free: 4.906 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1629, allocations: 0 / 495.9 MB, free: 4.906 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003925/0.1633, allocations: 197.2 kB / 496 MB, free: 4.715 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.1644, allocations: 169.8 kB / 496.2 MB, free: 4.555 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.1667, allocations: 1.752 MB / 498 MB, free: 2.773 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004229/0.1671, allocations: 0.9107 MB / 498.9 MB, free: 1.836 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003258/0.1674, allocations: 73.44 kB / 498.9 MB, free: 1.762 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.1676, allocations: 39.44 kB / 499 MB, free: 1.723 MB / 366.1 MB Notification: Performance of SimCode: time 4.2e-07/0.1676, allocations: 4 kB / 499 MB, free: 1.719 MB / 366.1 MB Notification: Performance of Templates: time 0.01134/0.1789, allocations: 5.931 MB / 0.4931 GB, free: 11.84 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches