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: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001207/0.001207, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.437/1.437, allocations: 222.9 MB / 242.3 MB, free: 15.21 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.2203/0.2203, allocations: 44.19 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 61.31 kB / 408.5 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1324, allocations: 60.82 MB / 469.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005965/0.1384, allocations: 4.011 MB / 473.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003166/0.1416, allocations: 1.219 MB / 474.6 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008813/0.1425, allocations: 31.81 kB / 474.6 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005228/0.1431, allocations: 114.7 kB / 474.7 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008968/0.144, allocations: 170.5 kB / 474.9 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.1451, allocations: 390.8 kB / 475.3 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001272/0.1464, allocations: 0.8346 MB / 476.1 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006124/0.147, allocations: 296.9 kB / 476.4 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005888/0.1476, allocations: 314.6 kB / 476.7 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004792/0.1481, allocations: 326.2 kB / 477 MB, free: 6.578 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001397/0.1482, allocations: 64 kB / 477.1 MB, free: 6.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.1484, allocations: 68 kB / 477.1 MB, free: 6.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.1485, allocations: 155.3 kB / 477.3 MB, free: 6.297 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003592/0.1489, allocations: 353.9 kB / 477.6 MB, free: 5.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008719/0.1498, allocations: 0.7668 MB / 478.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.1498, allocations: 0 / 478.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1498, allocations: 0 / 478.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.316e-05/0.1498, allocations: 0 / 478.4 MB, free: 5.18 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.002381/0.1522, allocations: 1.051 MB / 479.5 MB, free: 4.078 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.1523, allocations: 12.03 kB / 479.5 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001582/0.1524, allocations: 98.7 kB / 479.6 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.1527, allocations: 95.83 kB / 479.7 MB, free: 3.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000877/0.1535, allocations: 0.4954 MB / 480.2 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.367e-05/0.1536, allocations: 49.69 kB / 480.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.822e-05/0.1537, allocations: 68.27 kB / 480.3 MB, free: 3.215 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.1548, allocations: 0.6076 MB / 480.9 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.1548, allocations: 0 / 480.9 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.991e-05/0.1549, allocations: 28 kB / 480.9 MB, free: 2.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.1549, allocations: 12 kB / 480.9 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007847/0.1557, allocations: 393.9 kB / 481.3 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004497/0.1602, allocations: 2.993 MB / 484.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009792/0.1612, allocations: 445.7 kB / 484.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003568/0.1616, allocations: 173.6 kB / 484.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.1616, allocations: 4 kB / 484.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/0.1617, allocations: 42.59 kB / 485 MB, free: 14.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 2.234e-06/0.1617, allocations: 4 kB / 485 MB, free: 14.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001312/0.163, allocations: 0.5325 MB / 485.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.1631, allocations: 114.7 kB / 485.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000702/0.1638, allocations: 0.5431 MB / 486.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.269e-05/0.1639, allocations: 33.7 kB / 486.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003096/0.1642, allocations: 372 kB / 486.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001539/0.1643, allocations: 153.8 kB / 486.7 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001904/0.1645, allocations: 122.2 kB / 486.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1647, allocations: 374.8 kB / 487.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004106/0.1651, allocations: 183.4 kB / 487.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005493/0.1657, allocations: 397 kB / 487.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009576/0.1667, allocations: 0.5724 MB / 488.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.1667, allocations: 0 / 488.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001329/0.168, allocations: 0.6519 MB / 489 MB, free: 10.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.1681, allocations: 8 kB / 489 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.1681, allocations: 7.938 kB / 489 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.795e-05/0.1681, allocations: 12.69 kB / 489 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005523/0.1687, allocations: 147.7 kB / 489.1 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.925e-05/0.1687, allocations: 15.94 kB / 489.2 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004533/0.1692, allocations: 75.41 kB / 489.2 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.691e-05/0.1692, allocations: 24 kB / 489.3 MB, free: 9.734 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005496/0.1698, allocations: 305.4 kB / 489.5 MB, free: 9.434 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005046/0.1703, allocations: 377 kB / 489.9 MB, free: 8.969 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008701/0.1712, allocations: 0.5522 MB / 490.5 MB, free: 8.324 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.611e-06/0.1712, allocations: 0 / 490.5 MB, free: 8.324 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001214/0.1724, allocations: 0.6287 MB / 491.1 MB, free: 7.688 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.1724, allocations: 8 kB / 491.1 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/0.1725, allocations: 8.469 kB / 491.1 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.1725, allocations: 12.69 kB / 491.1 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005217/0.173, allocations: 135.8 kB / 491.3 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/0.173, allocations: 15.94 kB / 491.3 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004462/0.1735, allocations: 63.52 kB / 491.3 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.517e-05/0.1736, allocations: 27.98 kB / 491.4 MB, free: 7.422 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.000225/0.1738, allocations: 226.5 kB / 491.6 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.1739, allocations: 67.16 kB / 491.7 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001725/0.1741, allocations: 70.17 kB / 491.7 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.1741, allocations: 11.94 kB / 491.7 MB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.1742, allocations: 0 / 491.7 MB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.1742, allocations: 3.984 kB / 491.7 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000916/0.1751, allocations: 0.5635 MB / 492.3 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.1751, allocations: 4 kB / 492.3 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005179/0.1756, allocations: 91.88 kB / 492.4 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.526e-06/0.1757, allocations: 0 / 492.4 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.474e-05/0.1757, allocations: 8 kB / 492.4 MB, free: 6.324 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.476e-06/0.1757, allocations: 7.938 kB / 492.4 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.1757, allocations: 7.984 kB / 492.4 MB, free: 6.309 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001468/0.1772, allocations: 0.7775 MB / 493.2 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002469/0.1775, allocations: 164.4 kB / 493.4 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.05e-05/0.1776, allocations: 8 kB / 493.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000353/0.1779, allocations: 31.91 kB / 493.4 MB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.178, allocations: 39.88 kB / 493.4 MB, free: 5.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.1781, allocations: 12 kB / 493.4 MB, free: 5.246 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004534/0.1785, allocations: 371.1 kB / 493.8 MB, free: 4.891 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1785, allocations: 0 / 493.8 MB, free: 4.891 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008929/0.1794, allocations: 243.1 kB / 494 MB, free: 4.652 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.001697/0.1811, allocations: 1.342 MB / 495.4 MB, free: 3.285 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.1827, allocations: 0.7373 MB / 496.1 MB, free: 2.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1828, allocations: 4.375 kB / 496.1 MB, free: 2.547 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003869/0.1832, allocations: 187.8 kB / 496.3 MB, free: 2.363 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.1842, allocations: 189.6 kB / 496.5 MB, free: 2.184 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0083/0.1925, allocations: 5.808 MB / 0.4905 GB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005567/0.1931, allocations: 0.9143 MB / 0.4914 GB, free: 11.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004043/0.1935, allocations: 76.78 kB / 0.4915 GB, free: 11.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.1938, allocations: 243.4 kB / 0.4917 GB, free: 10.85 MB / 382.1 MB Notification: Performance of SimCode: time 8.61e-07/0.1938, allocations: 0 / 0.4917 GB, free: 10.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2449/0.4388, allocations: 12.62 MB / 0.5041 GB, free: 49.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.808/8.246, allocations: 7.906 kB / 0.5041 GB, free: 49.05 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches