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.001213/0.001214, allocations: 96.08 kB / 16.99 MB, free: 5.941 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.001039/0.001039, allocations: 180.3 kB / 17.88 MB, free: 5.609 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.481/1.481, allocations: 223.2 MB / 241.8 MB, free: 372 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.2177/0.2177, allocations: 44.23 MB / 337.1 MB, free: 2.91 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003365, allocations: 11.98 kB / 409.5 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1519, allocations: 61.91 MB / 471.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.00514/0.1572, allocations: 3.374 MB / 474.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003325/0.1605, allocations: 1.162 MB / 476 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006622/0.1612, allocations: 23.88 kB / 476 MB, free: 9.191 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.1614, allocations: 51.38 kB / 476.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006258/0.162, allocations: 183.4 kB / 476.2 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006987/0.1627, allocations: 291 kB / 476.5 MB, free: 8.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007631/0.1635, allocations: 0.5469 MB / 477.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004078/0.1639, allocations: 228.6 kB / 477.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00038/0.1643, allocations: 250.9 kB / 477.5 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/0.1646, allocations: 258.5 kB / 477.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.824e-05/0.1647, allocations: 24 kB / 477.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.866e-05/0.1648, allocations: 24 kB / 477.8 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.559e-05/0.1649, allocations: 99.47 kB / 477.9 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.165, allocations: 141.3 kB / 478.1 MB, free: 7.109 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005339/0.1655, allocations: 0.5377 MB / 478.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1655, allocations: 4 kB / 478.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.1656, allocations: 0 / 478.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.1656, allocations: 0 / 478.6 MB, free: 6.566 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.001696/0.1673, allocations: 0.9424 MB / 479.5 MB, free: 5.574 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.1673, allocations: 12.03 kB / 479.6 MB, free: 5.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001312/0.1675, allocations: 86.97 kB / 479.6 MB, free: 5.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007301/0.1682, allocations: 486.5 kB / 480.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.1683, allocations: 37.31 kB / 480.2 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.1684, allocations: 71.84 kB / 480.2 MB, free: 4.852 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.1694, allocations: 0.6115 MB / 480.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.1695, allocations: 4 kB / 480.8 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.078e-05/0.1695, allocations: 20 kB / 480.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.704e-05/0.1696, allocations: 16 kB / 480.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007506/0.1703, allocations: 401.9 kB / 481.3 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004003/0.1743, allocations: 3.044 MB / 484.3 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.1754, allocations: 470.2 kB / 484.8 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.1754, allocations: 7.984 kB / 484.8 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.1755, allocations: 38.56 kB / 484.8 MB, free: 28 kB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 2.053e-06/0.1755, allocations: 0 / 484.8 MB, free: 28 kB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.001275/0.1768, allocations: 0.5643 MB / 485.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.772e-05/0.1769, allocations: 110.8 kB / 485.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006096/0.1775, allocations: 0.5391 MB / 486 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.649e-05/0.1775, allocations: 37.7 kB / 486.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002722/0.1778, allocations: 372.2 kB / 486.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.1779, allocations: 157.8 kB / 486.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.443e-05/0.178, allocations: 12 kB / 486.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.1781, allocations: 374.7 kB / 487 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004136/0.1786, allocations: 189.2 kB / 487.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005302/0.1791, allocations: 401 kB / 487.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004475/0.1796, allocations: 236.7 kB / 487.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.575e-06/0.1796, allocations: 4 kB / 487.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001216/0.1808, allocations: 0.6599 MB / 488.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001215/0.182, allocations: 2.612 MB / 491 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.182, allocations: 4 kB / 491 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.48e-05/0.1821, allocations: 12 kB / 491.1 MB, free: 9.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005534/0.1826, allocations: 147.8 kB / 491.2 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.861e-05/0.1827, allocations: 15.89 kB / 491.2 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000425/0.1831, allocations: 83.34 kB / 491.3 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.344e-05/0.1831, allocations: 28 kB / 491.3 MB, free: 9.137 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.145e-06/0.1832, allocations: 8 kB / 491.3 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009423/0.1841, allocations: 0.5508 MB / 491.9 MB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1841, allocations: 4.078 kB / 491.9 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.1842, allocations: 12 kB / 491.9 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004716/0.1846, allocations: 135.8 kB / 492 MB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.1847, allocations: 15.92 kB / 492.1 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003421/0.185, allocations: 67.64 kB / 492.1 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.669e-05/0.1851, allocations: 28 kB / 492.1 MB, free: 8.32 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.0003978/0.1855, allocations: 276.8 kB / 492.4 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.1856, allocations: 67.16 kB / 492.5 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001421/0.1857, allocations: 78.09 kB / 492.6 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.1858, allocations: 4 kB / 492.6 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.1858, allocations: 0 / 492.6 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.1858, allocations: 4 kB / 492.6 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008355/0.1866, allocations: 0.5673 MB / 493.1 MB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.1866, allocations: 11.95 kB / 493.1 MB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004807/0.1871, allocations: 91.83 kB / 493.2 MB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.1871, allocations: 4 kB / 493.2 MB, free: 7.168 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.375e-05/0.1872, allocations: 11.98 kB / 493.2 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.1872, allocations: 0 / 493.2 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.1872, allocations: 4 kB / 493.3 MB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/0.1885, allocations: 0.8211 MB / 494.1 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002175/0.1888, allocations: 172.3 kB / 494.2 MB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.484e-05/0.1888, allocations: 8 kB / 494.3 MB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003264/0.1892, allocations: 31.98 kB / 494.3 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.743e-05/0.1893, allocations: 31.94 kB / 494.3 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.1893, allocations: 15.94 kB / 494.3 MB, free: 6.039 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004422/0.1898, allocations: 371.1 kB / 494.7 MB, free: 5.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1898, allocations: 0 / 494.7 MB, free: 5.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009242/0.1907, allocations: 239.2 kB / 494.9 MB, free: 5.445 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.0001608/0.1909, allocations: 107.2 kB / 495 MB, free: 5.332 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.1924, allocations: 0.7403 MB / 495.8 MB, free: 4.594 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1924, allocations: 0 / 495.8 MB, free: 4.594 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003734/0.1928, allocations: 201.2 kB / 496 MB, free: 4.398 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008757/0.1937, allocations: 157.7 kB / 496.1 MB, free: 4.254 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.1961, allocations: 1.675 MB / 497.8 MB, free: 2.551 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005567/0.1966, allocations: 0.9262 MB / 498.7 MB, free: 1.598 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003658/0.197, allocations: 80.78 kB / 498.8 MB, free: 1.516 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.1971, allocations: 39.44 kB / 498.8 MB, free: 1.477 MB / 366.1 MB Notification: Performance of SimCode: time 1.293e-06/0.1971, allocations: 4 kB / 498.8 MB, free: 1.473 MB / 366.1 MB Notification: Performance of Templates: time 0.01198/0.2091, allocations: 5.731 MB / 0.4927 GB, free: 11.8 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches