Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001199/0.001199, allocations: 103.8 kB / 17.63 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001282/0.001282, allocations: 206.4 kB / 18.58 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2154/0.2154, allocations: 46.1 MB / 344.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 75.25 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.1428, allocations: 62.44 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005832/0.1487, allocations: 4.032 MB / 484.2 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002707/0.1514, allocations: 1.27 MB / 485.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006657/0.1521, allocations: 23.88 kB / 485.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004544/0.1526, allocations: 118.7 kB / 485.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008463/0.1535, allocations: 162.5 kB / 485.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000991/0.1545, allocations: 411.1 kB / 486.1 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001076/0.1556, allocations: 0.8307 MB / 487 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005359/0.1561, allocations: 281.1 kB / 487.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005965/0.1567, allocations: 322.6 kB / 487.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004277/0.1572, allocations: 318.2 kB / 487.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001376/0.1573, allocations: 68 kB / 487.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.1575, allocations: 72 kB / 488 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.1576, allocations: 163.3 kB / 488.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003641/0.158, allocations: 349.9 kB / 488.5 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008325/0.1588, allocations: 0.7629 MB / 489.3 MB, free: 12.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1589, allocations: 0 / 489.3 MB, free: 12.01 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1589, allocations: 0 / 489.3 MB, free: 12.01 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.383e-05/0.1589, allocations: 0 / 489.3 MB, free: 12.01 MB / 366.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.001898/0.1608, allocations: 1.063 MB / 490.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.1608, allocations: 12.03 kB / 490.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001046/0.161, allocations: 94.7 kB / 490.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002604/0.1612, allocations: 95.89 kB / 490.5 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006953/0.1619, allocations: 0.5109 MB / 491 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.53e-05/0.162, allocations: 45.67 kB / 491.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.881e-05/0.1621, allocations: 71.78 kB / 491.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.1631, allocations: 0.6109 MB / 491.7 MB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.845e-05/0.1632, allocations: 11.98 kB / 491.8 MB, free: 9.344 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.036e-05/0.1632, allocations: 23.94 kB / 491.8 MB, free: 9.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.1633, allocations: 16 kB / 491.8 MB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000813/0.1641, allocations: 378.2 kB / 492.2 MB, free: 8.934 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00418/0.1683, allocations: 3.009 MB / 495.2 MB, free: 5.785 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009924/0.1693, allocations: 436.7 kB / 495.6 MB, free: 5.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003582/0.1697, allocations: 173.6 kB / 495.8 MB, free: 5.164 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.161e-05/0.1697, allocations: 4 kB / 495.8 MB, free: 5.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.1698, allocations: 42.53 kB / 495.8 MB, free: 5.109 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 2.525e-06/0.1698, allocations: 0 / 495.8 MB, free: 5.109 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001297/0.1711, allocations: 0.5479 MB / 496.4 MB, free: 4.555 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.803e-05/0.1712, allocations: 132.5 kB / 496.5 MB, free: 4.395 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006444/0.1718, allocations: 0.5548 MB / 497.1 MB, free: 3.828 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.183e-05/0.1719, allocations: 37.7 kB / 497.1 MB, free: 3.785 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000277/0.1722, allocations: 372 kB / 497.5 MB, free: 3.418 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.1723, allocations: 153.9 kB / 497.6 MB, free: 3.266 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.1725, allocations: 110.2 kB / 497.7 MB, free: 3.152 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.1727, allocations: 378.8 kB / 498.1 MB, free: 2.773 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004587/0.1731, allocations: 191.4 kB / 498.3 MB, free: 2.586 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005727/0.1737, allocations: 397.9 kB / 498.7 MB, free: 2.098 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009806/0.1747, allocations: 0.5712 MB / 499.2 MB, free: 1.434 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.1747, allocations: 0 / 499.2 MB, free: 1.434 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001234/0.176, allocations: 0.6449 MB / 499.9 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.176, allocations: 8 kB / 499.9 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.176, allocations: 8 kB / 499.9 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/0.1761, allocations: 15.94 kB / 499.9 MB, free: 0.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005341/0.1766, allocations: 143.7 kB / 0.4883 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.995e-05/0.1766, allocations: 15.94 kB / 0.4883 GB, free: 0.5938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004509/0.1771, allocations: 75.61 kB / 0.4884 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/0.1771, allocations: 28 kB / 0.4884 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005079/0.1776, allocations: 305.4 kB / 0.4887 GB, free: 196 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005136/0.1782, allocations: 389.7 kB / 0.4891 GB, free: 15.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008663/0.1791, allocations: 0.5604 MB / 0.4896 GB, free: 15.06 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.627e-06/0.1791, allocations: 0 / 0.4896 GB, free: 15.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001173/0.1802, allocations: 0.6328 MB / 0.4903 GB, free: 14.42 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.1803, allocations: 8 kB / 0.4903 GB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.1803, allocations: 8 kB / 0.4903 GB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.1803, allocations: 15.94 kB / 0.4903 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000502/0.1808, allocations: 135.7 kB / 0.4904 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.1808, allocations: 15.94 kB / 0.4904 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003982/0.1812, allocations: 67.73 kB / 0.4905 GB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.928e-05/0.1813, allocations: 24 kB / 0.4905 GB, free: 14.15 MB / 382.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.0002152/0.1815, allocations: 216.6 kB / 0.4907 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/0.1817, allocations: 71.14 kB / 0.4908 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000142/0.1818, allocations: 78.05 kB / 0.4909 GB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.1818, allocations: 7.984 kB / 0.4909 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.1818, allocations: 4 kB / 0.4909 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1818, allocations: 0 / 0.4909 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008106/0.1827, allocations: 0.5635 MB / 0.4914 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1827, allocations: 4 kB / 0.4914 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004857/0.1832, allocations: 87.88 kB / 0.4915 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.1832, allocations: 4 kB / 0.4915 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.922e-05/0.1832, allocations: 11.94 kB / 0.4915 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.1832, allocations: 0 / 0.4915 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.1833, allocations: 3.938 kB / 0.4915 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.1845, allocations: 0.7736 MB / 0.4923 GB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000223/0.1848, allocations: 176.3 kB / 0.4925 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.357e-05/0.1849, allocations: 11.94 kB / 0.4925 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003485/0.1852, allocations: 27.97 kB / 0.4925 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.131e-05/0.1853, allocations: 27.97 kB / 0.4925 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.117e-05/0.1854, allocations: 11.98 kB / 0.4925 GB, free: 11.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004237/0.1858, allocations: 379.1 kB / 0.4929 GB, free: 11.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1858, allocations: 0 / 0.4929 GB, free: 11.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008435/0.1866, allocations: 243.1 kB / 0.4931 GB, free: 11.39 MB / 382.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.001639/0.1883, allocations: 1.336 MB / 0.4944 GB, free: 10.03 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.1899, allocations: 0.7472 MB / 0.4952 GB, free: 9.281 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1899, allocations: 0 / 0.4952 GB, free: 9.281 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003947/0.1903, allocations: 188.8 kB / 0.4954 GB, free: 9.098 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.1914, allocations: 190.9 kB / 0.4955 GB, free: 8.918 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009456/0.2008, allocations: 5.922 MB / 0.5013 GB, free: 2.723 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007217/0.2016, allocations: 0.9143 MB / 0.5022 GB, free: 1.781 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000422/0.202, allocations: 84.83 kB / 0.5023 GB, free: 1.699 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003894/0.2024, allocations: 243.4 kB / 0.5025 GB, free: 1.461 MB / 382.1 MB Notification: Performance of SimCode: time 1.242e-06/0.2024, allocations: 3.938 kB / 0.5025 GB, free: 1.457 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2527/0.4551, allocations: 12.58 MB / 0.5148 GB, free: 39.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.698/8.153, allocations: 9.344 kB / 0.5148 GB, free: 39.44 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches