Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001676/0.001676, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00199/0.00199, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.503/1.503, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2327/0.2327, allocations: 46.92 MB / 357.1 MB, free: 10.31 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 63.89 kB / 0.4909 GB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1342, allocations: 66 MB / 0.5553 GB, free: 5.863 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001798/0.136, allocations: 490.9 kB / 0.5558 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003313/0.1393, allocations: 2.142 MB / 0.5579 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.321e-05/0.1393, allocations: 4 kB / 0.5579 GB, free: 3.219 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.976e-05/0.1393, allocations: 3.938 kB / 0.5579 GB, free: 3.215 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.933e-05/0.1393, allocations: 0 / 0.5579 GB, free: 3.215 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001279/0.1406, allocations: 406.8 kB / 0.5583 GB, free: 2.816 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.301e-05/0.1407, allocations: 3.938 kB / 0.5583 GB, free: 2.812 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.882e-05/0.1407, allocations: 4 kB / 0.5583 GB, free: 2.809 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.964e-05/0.1407, allocations: 11.92 kB / 0.5583 GB, free: 2.797 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02066/0.1614, allocations: 3.36 MB / 0.5616 GB, free: 60 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.1614, allocations: 0 / 0.5616 GB, free: 60 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.1615, allocations: 7.984 kB / 0.5616 GB, free: 52 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.475e-05/0.1615, allocations: 7.984 kB / 0.5616 GB, free: 44 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.669e-05/0.1616, allocations: 4 kB / 0.5616 GB, free: 40 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001555/0.1617, allocations: 11.94 kB / 0.5616 GB, free: 28 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1617, allocations: 0 / 0.5616 GB, free: 28 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1617, allocations: 0 / 0.5616 GB, free: 28 kB / 414.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.1617, allocations: 3.938 kB / 0.5616 GB, free: 24 kB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003947/0.1621, allocations: 315.5 kB / 0.5619 GB, free: 15.67 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.1622, allocations: 12.03 kB / 0.5619 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.947e-05/0.1623, allocations: 110 kB / 0.5621 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002236/0.1625, allocations: 92.19 kB / 0.5621 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001769/0.1627, allocations: 235.7 kB / 0.5624 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.179e-05/0.1627, allocations: 150.9 kB / 0.5625 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.787e-05/0.1628, allocations: 158.5 kB / 0.5627 GB, free: 14.88 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.428e-05/0.1629, allocations: 104.9 kB / 0.5628 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.97e-05/0.163, allocations: 75.28 kB / 0.5628 GB, free: 14.69 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-05/0.163, allocations: 154.6 kB / 0.563 GB, free: 14.54 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-05/0.1631, allocations: 150.6 kB / 0.5631 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.905e-05/0.1632, allocations: 154.6 kB / 0.5633 GB, free: 14.24 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003756/0.1636, allocations: 445.9 kB / 0.5637 GB, free: 13.75 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001217/0.1637, allocations: 177 kB / 0.5639 GB, free: 13.57 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.256e-05/0.1638, allocations: 84.14 kB / 0.5639 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.12e-05/0.1638, allocations: 75.28 kB / 0.564 GB, free: 13.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.531e-05/0.1639, allocations: 105.8 kB / 0.5641 GB, free: 13.3 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 1.743e-06/0.1639, allocations: 0 / 0.5641 GB, free: 13.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 9.377e-05/0.164, allocations: 29.7 kB / 0.5641 GB, free: 13.26 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.1641, allocations: 186 kB / 0.5643 GB, free: 13.05 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.1642, allocations: 93.84 kB / 0.5644 GB, free: 12.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.088e-05/0.1642, allocations: 29.7 kB / 0.5644 GB, free: 12.92 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.044e-05/0.1643, allocations: 84.14 kB / 0.5645 GB, free: 12.83 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.334e-06/0.1643, allocations: 0 / 0.5645 GB, free: 12.83 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.082e-05/0.1643, allocations: 9.719 kB / 0.5645 GB, free: 12.82 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.1645, allocations: 314.8 kB / 0.5648 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.731e-06/0.1645, allocations: 4.125 kB / 0.5648 GB, free: 12.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.109e-05/0.1646, allocations: 9.719 kB / 0.5648 GB, free: 12.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.76e-05/0.1646, allocations: 75.28 kB / 0.5649 GB, free: 12.41 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.504e-05/0.1646, allocations: 75.28 kB / 0.565 GB, free: 12.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 7.755e-05/0.1647, allocations: 33.64 kB / 0.565 GB, free: 12.29 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.404e-05/0.1648, allocations: 83.27 kB / 0.5651 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.203e-05/0.1648, allocations: 83.22 kB / 0.5652 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.719e-05/0.1649, allocations: 158.6 kB / 0.5653 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.645e-05/0.1649, allocations: 83.16 kB / 0.5654 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.211e-05/0.165, allocations: 150.6 kB / 0.5656 GB, free: 11.74 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.1651, allocations: 79.28 kB / 0.5656 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.775e-05/0.1652, allocations: 83.2 kB / 0.5657 GB, free: 11.58 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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.0001581/0.1653, allocations: 276.3 kB / 0.566 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.26e-05/0.1654, allocations: 113 kB / 0.5661 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.292e-05/0.1655, allocations: 111.8 kB / 0.5662 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-05/0.1655, allocations: 180.3 kB / 0.5664 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.528e-05/0.1656, allocations: 176.3 kB / 0.5665 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.171e-05/0.1657, allocations: 180.2 kB / 0.5667 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002751/0.166, allocations: 409.2 kB / 0.5671 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.661e-05/0.166, allocations: 108.9 kB / 0.5672 GB, free: 9.953 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.431e-05/0.1661, allocations: 101 kB / 0.5673 GB, free: 9.848 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.587e-05/0.1662, allocations: 180.2 kB / 0.5675 GB, free: 9.664 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.623e-05/0.1662, allocations: 180.5 kB / 0.5676 GB, free: 9.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-05/0.1663, allocations: 184.3 kB / 0.5678 GB, free: 9.293 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.98e-05/0.1664, allocations: 188.2 kB / 0.568 GB, free: 9.102 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001761/0.1666, allocations: 307.7 kB / 0.5683 GB, free: 8.777 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.526e-05/0.1667, allocations: 178.1 kB / 0.5685 GB, free: 8.578 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.1668, allocations: 184.3 kB / 0.5686 GB, free: 8.391 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.1669, allocations: 112.9 kB / 0.5687 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.124e-05/0.167, allocations: 180.2 kB / 0.5689 GB, free: 8.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.61e-05/0.167, allocations: 104.9 kB / 0.569 GB, free: 7.98 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.109e-05/0.1671, allocations: 79.28 kB / 0.5691 GB, free: 7.902 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1671, allocations: 0 / 0.5691 GB, free: 7.902 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002508/0.1673, allocations: 0 / 0.5691 GB, free: 7.902 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (0): * Single equations (assignments): 0 * 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.0004843/0.1678, allocations: 0.8049 MB / 0.5699 GB, free: 7.066 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 5.566e-05/0.1679, allocations: 4 kB / 0.5699 GB, free: 7.062 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.1679, allocations: 0 / 0.5699 GB, free: 7.062 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.262e-06/0.1679, allocations: 3.938 kB / 0.5699 GB, free: 7.059 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004349/0.1683, allocations: 466.3 kB / 0.5703 GB, free: 6.602 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003839/0.1687, allocations: 174 kB / 0.5705 GB, free: 6.391 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.169, allocations: 0.669 MB / 0.5711 GB, free: 5.695 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.615e-05/0.1691, allocations: 7.984 kB / 0.5711 GB, free: 5.688 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.878e-05/0.1691, allocations: 11.42 kB / 0.5712 GB, free: 5.676 MB / 430.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1691, allocations: 3.938 kB / 0.5712 GB, free: 5.672 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02235/0.1914, allocations: 1.019 MB / 0.5722 GB, free: 4.734 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.832/8.024, allocations: 10.39 kB / 0.5722 GB, free: 4.727 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.08586864300014]