Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001802/0.001802, allocations: 122.2 kB / 18.5 MB, free: 4.562 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.002083/0.002083, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.572/1.572, allocations: 230.6 MB / 254.8 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.237/0.237, allocations: 44.9 MB / 355.8 MB, free: 12.33 MB / 286.1 MB " [Timeout remaining time 180] 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.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_0_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002084/0.002084, allocations: 71.89 kB / 0.4885 GB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1297, allocations: 65.41 MB / 0.5524 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001869/0.1316, allocations: 494.9 kB / 0.5529 GB, free: 9.691 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00363/0.1352, allocations: 2.146 MB / 0.555 GB, free: 7.527 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.156e-05/0.1353, allocations: 0 / 0.555 GB, free: 7.527 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.484e-05/0.1353, allocations: 0 / 0.555 GB, free: 7.527 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.083e-05/0.1353, allocations: 0 / 0.555 GB, free: 7.527 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0015/0.1368, allocations: 410.7 kB / 0.5554 GB, free: 7.125 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.563e-05/0.1369, allocations: 8 kB / 0.5554 GB, free: 7.117 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.01e-05/0.1369, allocations: 3.938 kB / 0.5554 GB, free: 7.113 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.68e-05/0.137, allocations: 4 kB / 0.5554 GB, free: 7.109 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02084/0.1578, allocations: 3.377 MB / 0.5587 GB, free: 4.355 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.56e-05/0.1578, allocations: 0 / 0.5587 GB, free: 4.355 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.256e-05/0.1579, allocations: 4 kB / 0.5587 GB, free: 4.352 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.656e-06/0.1579, allocations: 0 / 0.5587 GB, free: 4.352 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.912e-05/0.1579, allocations: 0 / 0.5587 GB, free: 4.352 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.1581, allocations: 11.98 kB / 0.5587 GB, free: 4.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1581, allocations: 0 / 0.5587 GB, free: 4.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1581, allocations: 0 / 0.5587 GB, free: 4.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.1581, allocations: 4 kB / 0.5587 GB, free: 4.336 MB / 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.0003481/0.1584, allocations: 319.5 kB / 0.559 GB, free: 3.977 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.1585, allocations: 12.03 kB / 0.559 GB, free: 3.965 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.797e-05/0.1585, allocations: 79.47 kB / 0.5591 GB, free: 3.887 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.656e-05/0.1586, allocations: 106 kB / 0.5592 GB, free: 3.773 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002172/0.1588, allocations: 96.14 kB / 0.5593 GB, free: 3.68 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.159, allocations: 235.7 kB / 0.5595 GB, free: 3.41 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.953e-05/0.159, allocations: 154.7 kB / 0.5597 GB, free: 3.258 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.777e-05/0.1591, allocations: 154.6 kB / 0.5598 GB, free: 3.105 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.143e-05/0.1592, allocations: 101 kB / 0.5599 GB, free: 3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.25e-05/0.1592, allocations: 79.28 kB / 0.56 GB, free: 2.922 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.601e-05/0.1593, allocations: 150.6 kB / 0.5601 GB, free: 2.773 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.987e-05/0.1594, allocations: 154.5 kB / 0.5603 GB, free: 2.621 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.053e-05/0.1594, allocations: 154.6 kB / 0.5604 GB, free: 2.469 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003248/0.1598, allocations: 445.9 kB / 0.5608 GB, free: 1.984 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001045/0.1599, allocations: 173.1 kB / 0.561 GB, free: 1.805 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.708e-05/0.1599, allocations: 80.14 kB / 0.5611 GB, free: 1.723 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.227e-05/0.16, allocations: 87.2 kB / 0.5612 GB, free: 1.637 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.066e-05/0.16, allocations: 109.8 kB / 0.5613 GB, free: 1.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 1.262e-06/0.16, allocations: 0 / 0.5613 GB, free: 1.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.288e-05/0.1601, allocations: 29.7 kB / 0.5613 GB, free: 1.484 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.1602, allocations: 182.1 kB / 0.5615 GB, free: 1.281 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.1603, allocations: 89.86 kB / 0.5616 GB, free: 1.184 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.1603, allocations: 25.7 kB / 0.5616 GB, free: 1.152 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.954e-05/0.1604, allocations: 84.27 kB / 0.5617 GB, free: 1.066 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-06/0.1604, allocations: 0 / 0.5617 GB, free: 1.066 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.031e-05/0.1604, allocations: 17.72 kB / 0.5617 GB, free: 1.043 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1605, allocations: 310.8 kB / 0.562 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.899e-06/0.1606, allocations: 0 / 0.562 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.813e-05/0.1606, allocations: 17.66 kB / 0.562 GB, free: 0.707 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.294e-05/0.1606, allocations: 75.28 kB / 0.5621 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.726e-05/0.1607, allocations: 83.25 kB / 0.5621 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.588e-05/0.1607, allocations: 37.62 kB / 0.5622 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.372e-05/0.1608, allocations: 79.28 kB / 0.5623 GB, free: 440 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-05/0.1608, allocations: 75.28 kB / 0.5623 GB, free: 364 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.46e-05/0.1609, allocations: 158.5 kB / 0.5625 GB, free: 204 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.999e-05/0.1609, allocations: 75.28 kB / 0.5625 GB, free: 128 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.859e-05/0.161, allocations: 158.5 kB / 0.5627 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.999e-05/0.1611, allocations: 79.28 kB / 0.5628 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.1611, allocations: 79.28 kB / 0.5629 GB, free: 15.81 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.0001504/0.1613, allocations: 268.3 kB / 0.5631 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.923e-05/0.1613, allocations: 108.9 kB / 0.5632 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.335e-05/0.1614, allocations: 115.9 kB / 0.5633 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.978e-05/0.1615, allocations: 188.2 kB / 0.5635 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.109e-05/0.1616, allocations: 176.3 kB / 0.5637 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.607e-05/0.1616, allocations: 188.2 kB / 0.5638 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002705/0.1619, allocations: 401.2 kB / 0.5642 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.484e-05/0.162, allocations: 101 kB / 0.5643 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.724e-05/0.162, allocations: 112.9 kB / 0.5644 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.369e-05/0.1621, allocations: 180.3 kB / 0.5646 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.043e-05/0.1622, allocations: 180.5 kB / 0.5648 GB, free: 13.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.249e-05/0.1623, allocations: 176.3 kB / 0.5649 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.321e-05/0.1624, allocations: 180.3 kB / 0.5651 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001863/0.1625, allocations: 319.7 kB / 0.5654 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.721e-05/0.1626, allocations: 182 kB / 0.5656 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.913e-05/0.1627, allocations: 176.3 kB / 0.5658 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.1628, allocations: 109 kB / 0.5659 GB, free: 12.51 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.036e-05/0.1629, allocations: 188.2 kB / 0.566 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.286e-05/0.163, allocations: 101 kB / 0.5661 GB, free: 12.21 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.169e-05/0.163, allocations: 79.28 kB / 0.5662 GB, free: 12.14 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.163, allocations: 0 / 0.5662 GB, free: 12.14 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002522/0.1633, allocations: 4 kB / 0.5662 GB, free: 12.13 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.0004626/0.1637, allocations: 0.8087 MB / 0.567 GB, free: 11.29 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 4.657e-05/0.1638, allocations: 0 / 0.567 GB, free: 11.29 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1638, allocations: 0 / 0.567 GB, free: 11.29 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.059e-06/0.1638, allocations: 4 kB / 0.567 GB, free: 11.29 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004085/0.1642, allocations: 460.7 kB / 0.5675 GB, free: 10.84 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003702/0.1646, allocations: 181.9 kB / 0.5676 GB, free: 10.62 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.1649, allocations: 0.6768 MB / 0.5683 GB, free: 9.918 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.29e-05/0.1649, allocations: 4 kB / 0.5683 GB, free: 9.914 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.386e-05/0.1649, allocations: 11.38 kB / 0.5683 GB, free: 9.902 MB / 430.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1649, allocations: 0 / 0.5683 GB, free: 9.902 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01571/0.1806, allocations: 1.061 MB / 0.5693 GB, free: 8.945 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.549/8.73, allocations: 2.344 kB / 0.5693 GB, free: 8.945 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.826124107989017]