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.001343/0.001343, 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.001393/0.001393, allocations: 203.3 kB / 20.74 MB, free: 2.316 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.484/1.484, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.2363/0.2363, allocations: 44.9 MB / 355.1 MB, free: 12.32 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",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.001977/0.001977, allocations: 71.88 kB / 499.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1201, allocations: 65.41 MB / 0.5517 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001452/0.1216, allocations: 490.8 kB / 0.5522 GB, free: 9.691 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003171/0.1247, allocations: 2.154 MB / 0.5543 GB, free: 7.52 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.445e-05/0.1247, allocations: 0 / 0.5543 GB, free: 7.52 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.616e-05/0.1248, allocations: 0 / 0.5543 GB, free: 7.52 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.576e-05/0.1248, allocations: 3.938 kB / 0.5543 GB, free: 7.516 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.1259, allocations: 402.3 kB / 0.5547 GB, free: 7.125 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 3.628e-05/0.1259, allocations: 0 / 0.5547 GB, free: 7.125 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.729e-05/0.126, allocations: 7.984 kB / 0.5547 GB, free: 7.117 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.596e-05/0.126, allocations: 11.92 kB / 0.5547 GB, free: 7.105 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02039/0.1464, allocations: 3.368 MB / 0.558 GB, free: 4.363 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.84e-05/0.1464, allocations: 0 / 0.558 GB, free: 4.363 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.1465, allocations: 8 kB / 0.558 GB, free: 4.355 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.211e-05/0.1465, allocations: 0 / 0.558 GB, free: 4.355 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.885e-05/0.1465, allocations: 11.92 kB / 0.558 GB, free: 4.344 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.1467, allocations: 11.98 kB / 0.558 GB, free: 4.332 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1467, allocations: 0 / 0.558 GB, free: 4.332 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1467, allocations: 0 / 0.558 GB, free: 4.332 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.1467, allocations: 0 / 0.558 GB, free: 4.332 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.0004191/0.1471, allocations: 315.5 kB / 0.5583 GB, free: 3.977 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.1472, allocations: 12.03 kB / 0.5583 GB, free: 3.965 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001229/0.1473, allocations: 110 kB / 0.5584 GB, free: 3.848 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002285/0.1475, allocations: 84.2 kB / 0.5585 GB, free: 3.766 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.1477, allocations: 243.6 kB / 0.5588 GB, free: 3.488 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.426e-05/0.1478, allocations: 158.9 kB / 0.5589 GB, free: 3.332 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.627e-05/0.1478, allocations: 158.5 kB / 0.5591 GB, free: 3.176 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.672e-05/0.1479, allocations: 104.9 kB / 0.5592 GB, free: 3.066 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.95e-05/0.148, allocations: 75.28 kB / 0.5592 GB, free: 2.992 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-05/0.1481, allocations: 154.6 kB / 0.5594 GB, free: 2.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.726e-05/0.1481, allocations: 150.6 kB / 0.5595 GB, free: 2.691 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.231e-05/0.1482, allocations: 150.6 kB / 0.5597 GB, free: 2.543 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003516/0.1486, allocations: 446 kB / 0.5601 GB, free: 2.059 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.1487, allocations: 177 kB / 0.5603 GB, free: 1.875 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.203e-05/0.1487, allocations: 80.14 kB / 0.5603 GB, free: 1.793 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.97e-05/0.1488, allocations: 75.28 kB / 0.5604 GB, free: 1.719 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.567e-05/0.1489, allocations: 113.8 kB / 0.5605 GB, free: 1.598 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 8.01e-07/0.1489, allocations: 0 / 0.5605 GB, free: 1.598 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.938e-05/0.1489, allocations: 29.7 kB / 0.5605 GB, free: 1.562 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.149, allocations: 182.1 kB / 0.5607 GB, free: 1.359 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.1492, allocations: 97.8 kB / 0.5608 GB, free: 1.254 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.1492, allocations: 25.7 kB / 0.5608 GB, free: 1.223 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.827e-05/0.1492, allocations: 80.14 kB / 0.5609 GB, free: 1.141 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.542e-06/0.1492, allocations: 0 / 0.5609 GB, free: 1.141 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.808e-05/0.1492, allocations: 13.72 kB / 0.5609 GB, free: 1.121 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1494, allocations: 310.8 kB / 0.5612 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.153e-06/0.1494, allocations: 4.125 kB / 0.5612 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.005e-05/0.1494, allocations: 17.7 kB / 0.5612 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.601e-05/0.1495, allocations: 79.28 kB / 0.5613 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.208e-05/0.1495, allocations: 75.28 kB / 0.5614 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.623e-05/0.1495, allocations: 29.64 kB / 0.5614 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.786e-05/0.1496, allocations: 83.28 kB / 0.5615 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.574e-05/0.1496, allocations: 79.22 kB / 0.5616 GB, free: 444 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.732e-05/0.1497, allocations: 154.6 kB / 0.5617 GB, free: 288 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.351e-05/0.1497, allocations: 79.22 kB / 0.5618 GB, free: 208 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.731e-05/0.1498, allocations: 158.5 kB / 0.5619 GB, free: 48 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.1499, allocations: 79.28 kB / 0.562 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.065e-05/0.1499, allocations: 83.16 kB / 0.5621 GB, free: 15.89 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.0001385/0.1501, allocations: 264.3 kB / 0.5623 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.789e-05/0.1501, allocations: 105 kB / 0.5624 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.329e-05/0.1502, allocations: 119.8 kB / 0.5626 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.811e-05/0.1503, allocations: 184.2 kB / 0.5627 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.708e-05/0.1504, allocations: 180.3 kB / 0.5629 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-05/0.1504, allocations: 180.2 kB / 0.5631 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002752/0.1507, allocations: 409.2 kB / 0.5635 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-05/0.1508, allocations: 108.9 kB / 0.5636 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.718e-05/0.1508, allocations: 101 kB / 0.5637 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-05/0.1509, allocations: 180.3 kB / 0.5638 GB, free: 13.97 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.151, allocations: 184.5 kB / 0.564 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.892e-05/0.1511, allocations: 176.3 kB / 0.5642 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-05/0.1511, allocations: 188.2 kB / 0.5644 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000158/0.1513, allocations: 315.7 kB / 0.5647 GB, free: 13.08 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.129e-05/0.1514, allocations: 178.1 kB / 0.5648 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.655e-05/0.1515, allocations: 184.2 kB / 0.565 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.385e-05/0.1515, allocations: 108.9 kB / 0.5651 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.172e-05/0.1516, allocations: 184.3 kB / 0.5653 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.354e-05/0.1517, allocations: 108.9 kB / 0.5654 GB, free: 12.28 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.173e-05/0.1517, allocations: 75.28 kB / 0.5655 GB, free: 12.21 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1517, allocations: 0 / 0.5655 GB, free: 12.21 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002507/0.152, allocations: 0 / 0.5655 GB, free: 12.21 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.0004282/0.1524, allocations: 0.8049 MB / 0.5663 GB, free: 11.37 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 4.303e-05/0.1524, allocations: 4 kB / 0.5663 GB, free: 11.37 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1524, allocations: 0 / 0.5663 GB, free: 11.37 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.367e-06/0.1524, allocations: 3.938 kB / 0.5663 GB, free: 11.36 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003792/0.1528, allocations: 465.7 kB / 0.5667 GB, free: 10.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003605/0.1532, allocations: 182 kB / 0.5669 GB, free: 10.69 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002926/0.1535, allocations: 0.6729 MB / 0.5675 GB, free: 9.988 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.913e-05/0.1535, allocations: 0 / 0.5675 GB, free: 9.988 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.22e-05/0.1535, allocations: 7.438 kB / 0.5675 GB, free: 9.98 MB / 430.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1535, allocations: 0 / 0.5675 GB, free: 9.98 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02098/0.1745, allocations: 1.022 MB / 0.5685 GB, free: 9.039 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.205/8.379, allocations: 6.406 kB / 0.5686 GB, free: 9.035 MB / 430.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_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.csv","/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.355960241984576]