Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.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.001714/0.001714, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.002035/0.002035, allocations: 209.6 kB / 20.75 MB, free: 2.293 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.508/1.508, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.2327/0.2327, allocations: 44.91 MB / 355.1 MB, free: 12.31 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.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",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.003269/0.003269, allocations: 67.89 kB / 499.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1425, allocations: 65.42 MB / 0.5517 GB, free: 10.13 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003803/0.1463, allocations: 2.323 MB / 0.554 GB, free: 7.793 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001811/0.1481, allocations: 0.9114 MB / 0.5549 GB, free: 6.875 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001732/0.1483, allocations: 7.938 kB / 0.5549 GB, free: 6.867 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.1485, allocations: 39.47 kB / 0.555 GB, free: 6.828 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002545/0.1487, allocations: 67.38 kB / 0.555 GB, free: 6.762 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000478/0.1492, allocations: 183.6 kB / 0.5552 GB, free: 6.582 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004737/0.1497, allocations: 386.9 kB / 0.5556 GB, free: 6.203 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002766/0.15, allocations: 104.4 kB / 0.5557 GB, free: 6.102 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000292/0.1503, allocations: 159.3 kB / 0.5558 GB, free: 5.945 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002448/0.1505, allocations: 159.2 kB / 0.556 GB, free: 5.789 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.816e-05/0.1506, allocations: 36 kB / 0.556 GB, free: 5.754 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.1507, allocations: 55.98 kB / 0.5561 GB, free: 5.699 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.517e-05/0.1508, allocations: 87.69 kB / 0.5561 GB, free: 5.613 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001925/0.151, allocations: 187 kB / 0.5563 GB, free: 5.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005057/0.1515, allocations: 402.3 kB / 0.5567 GB, free: 5.035 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1515, allocations: 3.984 kB / 0.5567 GB, free: 5.031 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1515, allocations: 3.938 kB / 0.5567 GB, free: 5.027 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.352e-05/0.1515, allocations: 0 / 0.5567 GB, free: 5.027 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001287/0.1528, allocations: 0.6689 MB / 0.5574 GB, free: 4.309 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.1529, allocations: 12.03 kB / 0.5574 GB, free: 4.297 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001184/0.153, allocations: 79.28 kB / 0.5574 GB, free: 4.211 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004802/0.1535, allocations: 76.66 kB / 0.5575 GB, free: 4.137 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006221/0.1541, allocations: 368.1 kB / 0.5579 GB, free: 3.734 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.1541, allocations: 29.03 kB / 0.5579 GB, free: 3.707 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.256e-05/0.1542, allocations: 28.38 kB / 0.5579 GB, free: 3.68 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005736/0.1547, allocations: 294 kB / 0.5582 GB, free: 3.391 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.1548, allocations: 0 / 0.5582 GB, free: 3.391 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.382e-05/0.1548, allocations: 12 kB / 0.5582 GB, free: 3.379 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.1548, allocations: 4 kB / 0.5582 GB, free: 3.375 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004693/0.1553, allocations: 202.5 kB / 0.5584 GB, free: 3.172 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.1568, allocations: 0.8661 MB / 0.5593 GB, free: 2.258 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004414/0.1572, allocations: 197 kB / 0.5594 GB, free: 2.059 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002211/0.1574, allocations: 88.81 kB / 0.5595 GB, free: 1.969 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.074e-05/0.1575, allocations: 3.984 kB / 0.5595 GB, free: 1.965 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004554/0.1579, allocations: 223.2 kB / 0.5597 GB, free: 1.734 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.904e-06/0.1579, allocations: 0 / 0.5597 GB, free: 1.734 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008997/0.1588, allocations: 381.2 kB / 0.5601 GB, free: 1.355 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.551e-05/0.1589, allocations: 59.34 kB / 0.5602 GB, free: 1.285 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002983/0.1592, allocations: 267 kB / 0.5604 GB, free: 1.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.1e-05/0.1592, allocations: 37.7 kB / 0.5605 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/0.1594, allocations: 192.9 kB / 0.5606 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.1595, allocations: 103.2 kB / 0.5607 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.1596, allocations: 74.06 kB / 0.5608 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.1597, allocations: 346.8 kB / 0.5611 GB, free: 256 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002272/0.16, allocations: 88.69 kB / 0.5612 GB, free: 168 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003387/0.1603, allocations: 236.5 kB / 0.5615 GB, free: 15.88 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005681/0.1609, allocations: 344.8 kB / 0.5618 GB, free: 15.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.1609, allocations: 4 kB / 0.5618 GB, free: 15.47 MB / 430.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007527/0.1616, allocations: 377.3 kB / 0.5621 GB, free: 15.1 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1616, allocations: 8 kB / 0.5622 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.1617, allocations: 8 kB / 0.5622 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.345e-05/0.1617, allocations: 8 kB / 0.5622 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003268/0.162, allocations: 79.83 kB / 0.5622 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.162, allocations: 7.938 kB / 0.5623 GB, free: 14.99 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001943/0.1622, allocations: 27.84 kB / 0.5623 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.712e-05/0.1623, allocations: 27.92 kB / 0.5623 GB, free: 14.93 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0002224/0.1625, allocations: 159.8 kB / 0.5625 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.272e-05/0.1625, allocations: 39.8 kB / 0.5625 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007371/0.1633, allocations: 320.3 kB / 0.5628 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.1633, allocations: 4 kB / 0.5628 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1633, allocations: 0 / 0.5628 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.1633, allocations: 3.984 kB / 0.5628 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.1644, allocations: 0.7402 MB / 0.5635 GB, free: 13.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1644, allocations: 96 / 0.5635 GB, free: 13.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002674/0.1646, allocations: 55.84 kB / 0.5636 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.1646, allocations: 0 / 0.5636 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.928e-05/0.1647, allocations: 11.98 kB / 0.5636 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.1647, allocations: 7.938 kB / 0.5636 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1647, allocations: 0 / 0.5636 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009683/0.1656, allocations: 0.5189 MB / 0.5641 GB, free: 12.99 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.437e-05/0.1657, allocations: 112.9 kB / 0.5642 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.917e-05/0.1658, allocations: 8 kB / 0.5642 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.166, allocations: 15.92 kB / 0.5642 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.714e-05/0.1661, allocations: 23.97 kB / 0.5643 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-05/0.1661, allocations: 19.98 kB / 0.5643 GB, free: 12.79 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000213/0.1663, allocations: 193.9 kB / 0.5645 GB, free: 12.6 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1663, allocations: 0 / 0.5645 GB, free: 12.6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000396/0.1667, allocations: 71.83 kB / 0.5645 GB, free: 12.53 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001289/0.168, allocations: 1.075 MB / 0.5656 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006072/0.1686, allocations: 244.6 kB / 0.5658 GB, free: 11.19 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/0.1686, allocations: 12.25 kB / 0.5658 GB, free: 11.18 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002706/0.1689, allocations: 123.7 kB / 0.5659 GB, free: 11.06 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004239/0.1693, allocations: 46.42 kB / 0.566 GB, free: 11.01 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004585/0.1739, allocations: 3.254 MB / 0.5692 GB, free: 7.562 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004609/0.1743, allocations: 0.7919 MB / 0.5699 GB, free: 6.746 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001771/0.1745, allocations: 43.14 kB / 0.57 GB, free: 6.703 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002102/0.1747, allocations: 131.3 kB / 0.5701 GB, free: 6.574 MB / 430.1 MB Notification: Performance of SimCode: time 1.603e-06/0.1747, allocations: 3.938 kB / 0.5701 GB, free: 6.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0318/0.2065, allocations: 6.046 MB / 0.576 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.556/8.763, allocations: 0 / 0.576 GB, free: 0.5938 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219736 ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mean.x in file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.y in file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.y from file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.940343069843948]