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.001873/0.001873, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002391/0.002391, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.53/1.53, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.2383/0.2383, allocations: 46.92 MB / 357.1 MB, free: 10.36 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.002004/0.002004, allocations: 67.91 kB / 0.4909 GB, free: 8.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.141, allocations: 65.99 MB / 0.5553 GB, free: 5.938 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001651/0.1427, allocations: 496.9 kB / 0.5558 GB, free: 5.449 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003479/0.1462, allocations: 2.135 MB / 0.5579 GB, free: 3.297 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.995e-05/0.1462, allocations: 0 / 0.5579 GB, free: 3.297 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.206e-05/0.1462, allocations: 4 kB / 0.5579 GB, free: 3.293 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.059e-05/0.1462, allocations: 4 kB / 0.5579 GB, free: 3.289 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001319/0.1475, allocations: 410.7 kB / 0.5583 GB, free: 2.887 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.978e-05/0.1476, allocations: 0 / 0.5583 GB, free: 2.887 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.612e-05/0.1476, allocations: 0 / 0.5583 GB, free: 2.887 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.004e-05/0.1476, allocations: 11.94 kB / 0.5583 GB, free: 2.875 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02114/0.1688, allocations: 3.364 MB / 0.5616 GB, free: 136 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.925e-05/0.1688, allocations: 0 / 0.5616 GB, free: 136 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.1689, allocations: 8 kB / 0.5616 GB, free: 128 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.325e-05/0.1689, allocations: 0 / 0.5616 GB, free: 128 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.791e-05/0.1689, allocations: 0 / 0.5616 GB, free: 128 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000169/0.1691, allocations: 11.98 kB / 0.5616 GB, free: 116 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1691, allocations: 0 / 0.5616 GB, free: 116 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1691, allocations: 0 / 0.5616 GB, free: 116 kB / 414.1 MB Notification: Performance of Transformations before backend: time 1.386e-05/0.1691, allocations: 7.938 kB / 0.5616 GB, free: 108 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.0004584/0.1696, allocations: 319.5 kB / 0.5619 GB, free: 15.75 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.1696, allocations: 8.031 kB / 0.5619 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.082e-05/0.1697, allocations: 110 kB / 0.562 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000249/0.17, allocations: 80.22 kB / 0.5621 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002479/0.1702, allocations: 243.6 kB / 0.5624 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.347e-05/0.1703, allocations: 162.9 kB / 0.5625 GB, free: 15.11 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.1705, allocations: 158.5 kB / 0.5627 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.534e-05/0.1706, allocations: 105 kB / 0.5628 GB, free: 14.84 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.268e-05/0.1706, allocations: 75.28 kB / 0.5628 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.431e-05/0.1707, allocations: 150.6 kB / 0.563 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001589/0.1709, allocations: 150.6 kB / 0.5631 GB, free: 14.47 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/0.171, allocations: 154.6 kB / 0.5633 GB, free: 14.32 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003937/0.1714, allocations: 449.9 kB / 0.5637 GB, free: 13.83 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001189/0.1715, allocations: 173.1 kB / 0.5639 GB, free: 13.65 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.159e-05/0.1715, allocations: 84.08 kB / 0.5639 GB, free: 13.56 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.296e-05/0.1716, allocations: 79.28 kB / 0.564 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.998e-05/0.1717, allocations: 109.8 kB / 0.5641 GB, free: 13.37 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 1.092e-06/0.1717, allocations: 0 / 0.5641 GB, free: 13.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 9.227e-05/0.1717, allocations: 37.64 kB / 0.5642 GB, free: 13.32 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/0.1719, allocations: 178.1 kB / 0.5643 GB, free: 13.12 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.172, allocations: 89.86 kB / 0.5644 GB, free: 13.03 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.172, allocations: 29.83 kB / 0.5644 GB, free: 12.99 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.471e-05/0.172, allocations: 84.14 kB / 0.5645 GB, free: 12.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.964e-06/0.1721, allocations: 0 / 0.5645 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.997e-05/0.1721, allocations: 13.7 kB / 0.5645 GB, free: 12.89 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.1722, allocations: 310.8 kB / 0.5648 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.717e-06/0.1723, allocations: 8 kB / 0.5648 GB, free: 12.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.961e-05/0.1723, allocations: 9.719 kB / 0.5649 GB, free: 12.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.123e-05/0.1723, allocations: 79.31 kB / 0.5649 GB, free: 12.47 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.923e-05/0.1724, allocations: 75.28 kB / 0.565 GB, free: 12.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.91e-05/0.1724, allocations: 37.58 kB / 0.565 GB, free: 12.36 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.808e-05/0.1725, allocations: 81.78 kB / 0.5651 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.36e-05/0.1725, allocations: 79.28 kB / 0.5652 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001104/0.1726, allocations: 154.5 kB / 0.5653 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.911e-05/0.1727, allocations: 83.16 kB / 0.5654 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.994e-05/0.1728, allocations: 154.6 kB / 0.5656 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.1729, allocations: 87.22 kB / 0.5656 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.533e-05/0.1729, allocations: 75.28 kB / 0.5657 GB, free: 11.65 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.000168/0.1731, allocations: 260.3 kB / 0.566 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.647e-05/0.1732, allocations: 113 kB / 0.5661 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000182/0.1733, allocations: 115.9 kB / 0.5662 GB, free: 11.15 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.66e-05/0.1734, allocations: 176.3 kB / 0.5664 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001019/0.1735, allocations: 188.2 kB / 0.5665 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.25e-05/0.1736, allocations: 176.3 kB / 0.5667 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000451/0.1741, allocations: 405.1 kB / 0.5671 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.994e-05/0.1741, allocations: 105 kB / 0.5672 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.1742, allocations: 105 kB / 0.5673 GB, free: 9.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001065/0.1743, allocations: 184.2 kB / 0.5675 GB, free: 9.742 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.392e-05/0.1744, allocations: 176.6 kB / 0.5676 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000108/0.1745, allocations: 188.2 kB / 0.5678 GB, free: 9.371 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001644/0.1747, allocations: 180.3 kB / 0.568 GB, free: 9.188 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002047/0.1749, allocations: 311.7 kB / 0.5683 GB, free: 8.859 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.175, allocations: 182.1 kB / 0.5685 GB, free: 8.656 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001462/0.1751, allocations: 180.2 kB / 0.5686 GB, free: 8.473 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.1753, allocations: 109 kB / 0.5687 GB, free: 8.359 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/0.1754, allocations: 180.3 kB / 0.5689 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.662e-05/0.1755, allocations: 112.9 kB / 0.569 GB, free: 8.059 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.938e-05/0.1755, allocations: 83.27 kB / 0.5691 GB, free: 7.977 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1755, allocations: 0 / 0.5691 GB, free: 7.977 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002886/0.1758, allocations: 0 / 0.5691 GB, free: 7.977 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.0005093/0.1763, allocations: 0.801 MB / 0.5699 GB, free: 7.145 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 5.784e-05/0.1764, allocations: 3.938 kB / 0.5699 GB, free: 7.141 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1764, allocations: 4 kB / 0.5699 GB, free: 7.137 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.423e-06/0.1764, allocations: 0 / 0.5699 GB, free: 7.137 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000421/0.1768, allocations: 455.7 kB / 0.5703 GB, free: 6.688 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004142/0.1772, allocations: 186 kB / 0.5705 GB, free: 6.465 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004155/0.1777, allocations: 0.669 MB / 0.5711 GB, free: 5.77 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.435e-05/0.1777, allocations: 0 / 0.5711 GB, free: 5.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.691e-05/0.1777, allocations: 11.44 kB / 0.5712 GB, free: 5.758 MB / 430.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1777, allocations: 3.938 kB / 0.5712 GB, free: 5.754 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02526/0.203, allocations: 1.029 MB / 0.5722 GB, free: 4.809 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.173/8.376, allocations: 5.156 kB / 0.5722 GB, free: 4.809 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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.317273363936692]