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.001066/0.001066, allocations: 109.4 kB / 17.21 MB, free: 6.273 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.001136/0.001136, allocations: 194 kB / 18.12 MB, free: 5.363 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.427/1.427, allocations: 222.9 MB / 241.8 MB, free: 15.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2142/0.2142, allocations: 44.17 MB / 336.1 MB, free: 2.969 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 59.62 kB / 407.7 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1258, allocations: 60.83 MB / 468.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005252/0.1311, allocations: 4.026 MB / 472.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.1334, allocations: 1.196 MB / 473.7 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003582/0.1338, allocations: 23.88 kB / 473.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002875/0.1341, allocations: 79.22 kB / 473.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004399/0.1346, allocations: 139 kB / 474 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006632/0.1352, allocations: 359.1 kB / 474.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007191/0.136, allocations: 0.7954 MB / 475.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004001/0.1364, allocations: 276.2 kB / 475.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003835/0.1368, allocations: 290.6 kB / 475.7 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003223/0.1371, allocations: 302.2 kB / 476 MB, free: 7.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001438/0.1372, allocations: 36 kB / 476 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.814e-05/0.1373, allocations: 36 kB / 476 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.995e-05/0.1374, allocations: 123.3 kB / 476.2 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002575/0.1377, allocations: 325.9 kB / 476.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006187/0.1383, allocations: 0.7199 MB / 477.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1383, allocations: 0 / 477.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1383, allocations: 0 / 477.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.1384, allocations: 0 / 477.2 MB, free: 6.09 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.001718/0.1401, allocations: 1.059 MB / 478.3 MB, free: 4.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.1401, allocations: 12.03 kB / 478.3 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.1403, allocations: 91.91 kB / 478.4 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006365/0.1409, allocations: 0.4993 MB / 478.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.83e-05/0.141, allocations: 45.69 kB / 478.9 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.704e-05/0.1411, allocations: 64.22 kB / 479 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.1421, allocations: 0.6116 MB / 479.6 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.991e-05/0.1421, allocations: 4 kB / 479.6 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.761e-05/0.1422, allocations: 20 kB / 479.6 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.1422, allocations: 16 kB / 479.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007618/0.1429, allocations: 389.9 kB / 480 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003961/0.1469, allocations: 3.001 MB / 483 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009166/0.1479, allocations: 445.6 kB / 483.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003427/0.1482, allocations: 174.2 kB / 483.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.1483, allocations: 4 kB / 483.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.1483, allocations: 38.56 kB / 483.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 2.635e-06/0.1483, allocations: 0 / 483.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001247/0.1496, allocations: 0.5325 MB / 484.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.264e-05/0.1496, allocations: 114.8 kB / 484.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006142/0.1503, allocations: 0.5431 MB / 484.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.551e-05/0.1503, allocations: 33.7 kB / 484.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002823/0.1506, allocations: 372 kB / 485.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.1508, allocations: 157.8 kB / 485.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.1509, allocations: 114.2 kB / 485.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1511, allocations: 378.8 kB / 485.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004052/0.1515, allocations: 187.4 kB / 486 MB, free: 12.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005375/0.152, allocations: 401 kB / 486.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008976/0.1529, allocations: 0.5684 MB / 487 MB, free: 11.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.153, allocations: 4 kB / 487 MB, free: 11.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001117/0.1541, allocations: 0.6448 MB / 487.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.1541, allocations: 8 kB / 487.7 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.1541, allocations: 8 kB / 487.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.589e-05/0.1542, allocations: 12 kB / 487.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005421/0.1547, allocations: 131.8 kB / 487.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.884e-05/0.1548, allocations: 23.86 kB / 487.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003814/0.1551, allocations: 75.55 kB / 487.9 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.274e-05/0.1552, allocations: 28 kB / 487.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005186/0.1557, allocations: 301.4 kB / 488.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004921/0.1562, allocations: 385 kB / 488.6 MB, free: 9.984 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008039/0.157, allocations: 0.5601 MB / 489.2 MB, free: 9.332 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.515e-06/0.1571, allocations: 4 kB / 489.2 MB, free: 9.328 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001049/0.1581, allocations: 0.6254 MB / 489.8 MB, free: 8.695 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.1581, allocations: 10.5 kB / 489.8 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.1581, allocations: 11.98 kB / 489.8 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.1582, allocations: 11.94 kB / 489.8 MB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005045/0.1587, allocations: 131.8 kB / 490 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.1587, allocations: 15.94 kB / 490 MB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003471/0.159, allocations: 63.45 kB / 490 MB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.066e-05/0.1591, allocations: 32.09 kB / 490.1 MB, free: 8.426 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.0002049/0.1593, allocations: 220 kB / 490.3 MB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.1594, allocations: 67.16 kB / 490.3 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001453/0.1596, allocations: 74.17 kB / 490.4 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.1596, allocations: 7.984 kB / 490.4 MB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.1596, allocations: 3.938 kB / 490.4 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.1596, allocations: 0 / 490.4 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009459/0.1606, allocations: 0.5635 MB / 491 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1606, allocations: 0 / 491 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000489/0.1611, allocations: 83.89 kB / 491.1 MB, free: 7.355 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.1611, allocations: 7.938 kB / 491.1 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.723e-05/0.1612, allocations: 15.98 kB / 491.1 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.1612, allocations: 0 / 491.1 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.1612, allocations: 3.938 kB / 491.1 MB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001319/0.1625, allocations: 0.7803 MB / 491.9 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002201/0.1627, allocations: 168.4 kB / 492 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.533e-05/0.1628, allocations: 8 kB / 492.1 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003302/0.1632, allocations: 23.98 kB / 492.1 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.1633, allocations: 39.88 kB / 492.1 MB, free: 6.281 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.1633, allocations: 8 kB / 492.1 MB, free: 6.273 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004272/0.1637, allocations: 371.1 kB / 492.5 MB, free: 5.914 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1638, allocations: 4 kB / 492.5 MB, free: 5.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007588/0.1645, allocations: 247.1 kB / 492.7 MB, free: 5.668 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.0001358/0.1647, allocations: 107.2 kB / 492.8 MB, free: 5.555 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.166, allocations: 0.7325 MB / 493.6 MB, free: 4.824 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.166, allocations: 0 / 493.6 MB, free: 4.824 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003669/0.1664, allocations: 184.9 kB / 493.8 MB, free: 4.645 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.1675, allocations: 179.8 kB / 493.9 MB, free: 4.477 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002425/0.1699, allocations: 1.636 MB / 495.6 MB, free: 2.812 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004827/0.1704, allocations: 0.9184 MB / 496.5 MB, free: 1.863 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003249/0.1708, allocations: 77.28 kB / 496.6 MB, free: 1.785 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.1709, allocations: 47.42 kB / 496.6 MB, free: 1.738 MB / 366.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1709, allocations: 0 / 496.6 MB, free: 1.738 MB / 366.1 MB Notification: Performance of Templates: time 0.01163/0.1825, allocations: 5.97 MB / 0.4908 GB, free: 11.83 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