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.0009344/0.0009345, allocations: 93.56 kB / 17 MB, free: 6.129 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.001108/0.001108, allocations: 181.7 kB / 17.89 MB, free: 5.707 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.649/1.649, allocations: 223.3 MB / 241.9 MB, free: 244 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.2532/0.2532, allocations: 44.26 MB / 337.3 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003036, allocations: 8 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1329, allocations: 61.93 MB / 471.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004909/0.1378, allocations: 3.42 MB / 475 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00264/0.1405, allocations: 1.158 MB / 476.2 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006925/0.1412, allocations: 23.88 kB / 476.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004175/0.1417, allocations: 75.23 kB / 476.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008231/0.1425, allocations: 145.2 kB / 476.4 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009022/0.1434, allocations: 290.2 kB / 476.7 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001332/0.1448, allocations: 0.7409 MB / 477.4 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007323/0.1455, allocations: 220.7 kB / 477.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007566/0.1463, allocations: 242.7 kB / 477.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006126/0.1469, allocations: 258.5 kB / 478.1 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001806/0.1471, allocations: 24 kB / 478.2 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001501/0.1472, allocations: 24 kB / 478.2 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.1474, allocations: 103.4 kB / 478.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002538/0.1477, allocations: 137.3 kB / 478.4 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007681/0.1484, allocations: 0.5377 MB / 479 MB, free: 6.285 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.807e-06/0.1485, allocations: 4 kB / 479 MB, free: 6.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.407e-06/0.1485, allocations: 0 / 479 MB, free: 6.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.504e-05/0.1485, allocations: 0 / 479 MB, free: 6.281 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.002553/0.1511, allocations: 0.9502 MB / 479.9 MB, free: 5.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/0.1512, allocations: 11.97 kB / 479.9 MB, free: 5.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000345/0.1515, allocations: 90.97 kB / 480 MB, free: 5.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.1526, allocations: 482.6 kB / 480.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.444e-05/0.1527, allocations: 41.31 kB / 480.5 MB, free: 4.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/0.1528, allocations: 71.8 kB / 480.6 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.154, allocations: 0.6116 MB / 481.2 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.875e-05/0.1541, allocations: 7.938 kB / 481.2 MB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.986e-05/0.1541, allocations: 20 kB / 481.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.1541, allocations: 12 kB / 481.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007939/0.1549, allocations: 398 kB / 481.6 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004681/0.1596, allocations: 3.036 MB / 484.7 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000999/0.1606, allocations: 468.4 kB / 485.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000394/0.1611, allocations: 177.7 kB / 485.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.901e-05/0.1611, allocations: 11.98 kB / 485.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.191e-05/0.1612, allocations: 38.55 kB / 485.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 1.864e-06/0.1612, allocations: 4 kB / 485.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.0018/0.163, allocations: 0.5636 MB / 485.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.1631, allocations: 114.8 kB / 486 MB, free: 14.85 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00087/0.164, allocations: 0.5391 MB / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.616e-05/0.1641, allocations: 37.64 kB / 486.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003842/0.1645, allocations: 368.1 kB / 487 MB, free: 13.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002143/0.1647, allocations: 149.8 kB / 487.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/0.1647, allocations: 16 kB / 487.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002908/0.165, allocations: 378.7 kB / 487.5 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004829/0.1655, allocations: 185.2 kB / 487.7 MB, free: 13.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008144/0.1663, allocations: 405 kB / 488.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000516/0.1669, allocations: 232.7 kB / 488.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.1669, allocations: 4 kB / 488.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001311/0.1682, allocations: 0.6686 MB / 489 MB, free: 11.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002171/0.1684, allocations: 290 kB / 489.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.1685, allocations: 8 kB / 489.3 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.858e-05/0.1685, allocations: 12 kB / 489.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005299/0.169, allocations: 143.8 kB / 489.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.891e-05/0.1691, allocations: 23.88 kB / 489.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005165/0.1696, allocations: 79.36 kB / 489.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.562e-05/0.1697, allocations: 28 kB / 489.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.045e-06/0.1697, allocations: 0 / 489.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001166/0.1709, allocations: 0.546 MB / 490.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/0.1709, allocations: 8 kB / 490.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.1709, allocations: 12.69 kB / 490.1 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005052/0.1714, allocations: 143.8 kB / 490.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.252e-05/0.1715, allocations: 19.94 kB / 490.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003945/0.1719, allocations: 59.52 kB / 490.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.181e-05/0.1719, allocations: 24 kB / 490.3 MB, free: 10.29 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003297/0.1722, allocations: 283.4 kB / 490.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.1724, allocations: 71.16 kB / 490.7 MB, free: 9.938 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001535/0.1726, allocations: 74.11 kB / 490.8 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.1726, allocations: 4 kB / 490.8 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.1726, allocations: 0 / 490.8 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1726, allocations: 0 / 490.8 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008838/0.1735, allocations: 0.5673 MB / 491.3 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.1735, allocations: 3.953 kB / 491.3 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00046/0.174, allocations: 95.88 kB / 491.4 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.211e-06/0.174, allocations: 4 kB / 491.4 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.808e-05/0.174, allocations: 8 kB / 491.4 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.174, allocations: 4 kB / 491.5 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.174, allocations: 0 / 491.5 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0015/0.1755, allocations: 0.8117 MB / 492.3 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002371/0.1758, allocations: 172.2 kB / 492.4 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.914e-05/0.1759, allocations: 12 kB / 492.4 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003274/0.1762, allocations: 35.97 kB / 492.5 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.412e-05/0.1763, allocations: 35.83 kB / 492.5 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.1764, allocations: 8 kB / 492.5 MB, free: 8.027 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004721/0.1768, allocations: 371.1 kB / 492.9 MB, free: 7.668 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1768, allocations: 3.938 kB / 492.9 MB, free: 7.664 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009802/0.1778, allocations: 239.2 kB / 493.1 MB, free: 7.43 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000162/0.178, allocations: 115.2 kB / 493.2 MB, free: 7.309 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001487/0.1795, allocations: 0.7325 MB / 494 MB, free: 6.578 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1795, allocations: 4.375 kB / 494 MB, free: 6.574 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003699/0.1799, allocations: 196.9 kB / 494.2 MB, free: 6.383 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008987/0.1808, allocations: 165.6 kB / 494.3 MB, free: 6.227 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00257/0.1834, allocations: 1.671 MB / 496 MB, free: 4.527 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005293/0.1839, allocations: 0.9107 MB / 496.9 MB, free: 3.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000359/0.1843, allocations: 76.8 kB / 497 MB, free: 3.512 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.1844, allocations: 43.42 kB / 497 MB, free: 3.469 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1844, allocations: 0 / 497 MB, free: 3.469 MB / 366.1 MB Notification: Performance of Templates: time 0.01191/0.1963, allocations: 5.744 MB / 0.491 GB, free: 13.78 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