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.0008933/0.0008933, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008417/0.0008417, allocations: 170 kB / 23.95 MB, free: 0.6055 MB / 18.57 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 0.8758/0.8758, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.2385/0.2385, allocations: 32.79 MB / 293.5 MB, free: 1.223 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 439.6 MB, free: 4.27 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.094e-05/1.236e-05, allocations: 2.281 kB / 439.6 MB, free: 4.266 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002221/0.002233, allocations: 2.191 MB / 441.8 MB, free: 2.062 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009881/0.003221, allocations: 0.8567 MB / 442.6 MB, free: 1.199 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.003342, allocations: 7.938 kB / 442.6 MB, free: 1.191 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.003466, allocations: 39.53 kB / 442.7 MB, free: 1.152 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001913/0.003657, allocations: 75.31 kB / 442.7 MB, free: 1.078 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002986/0.003956, allocations: 187.5 kB / 442.9 MB, free: 0.8945 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003962/0.004352, allocations: 390.8 kB / 443.3 MB, free: 0.5117 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.004527, allocations: 96.77 kB / 443.4 MB, free: 424 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002305/0.004758, allocations: 219.5 kB / 443.6 MB, free: 204 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.004893, allocations: 123.6 kB / 443.7 MB, free: 80 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.599e-05/0.004929, allocations: 40 kB / 443.8 MB, free: 40 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1554/0.1603, allocations: 45.83 kB / 443.8 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001307/0.1605, allocations: 89.64 kB / 443.9 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.1606, allocations: 111.5 kB / 444 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003588/0.1609, allocations: 431.3 kB / 444.4 MB, free: 43.66 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1609, allocations: 2.938 kB / 444.4 MB, free: 43.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1609, allocations: 0 / 444.4 MB, free: 43.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.161, allocations: 0 / 444.4 MB, free: 43.66 MB / 410.7 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.0007739/0.1617, allocations: 0.7199 MB / 445.2 MB, free: 43.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.1618, allocations: 14.47 kB / 445.2 MB, free: 43.23 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.253e-05/0.1618, allocations: 79.73 kB / 445.3 MB, free: 43.19 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002378/0.1621, allocations: 80.53 kB / 445.3 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003132/0.1624, allocations: 299 kB / 445.6 MB, free: 43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.1624, allocations: 31.11 kB / 445.7 MB, free: 43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.268e-05/0.1624, allocations: 38.66 kB / 445.7 MB, free: 42.99 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003001/0.1627, allocations: 290.3 kB / 446 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.1628, allocations: 0.5625 kB / 446 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.1628, allocations: 14.31 kB / 446 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.1628, allocations: 9.938 kB / 446 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000234/0.163, allocations: 200.4 kB / 446.2 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007286/0.1637, allocations: 0.7462 MB / 446.9 MB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002406/0.164, allocations: 185.8 kB / 447.1 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.1641, allocations: 90.66 kB / 447.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.1641, allocations: 9.812 kB / 447.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/0.1643, allocations: 226 kB / 447.4 MB, free: 42.58 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.282e-06/0.1643, allocations: 0.5 kB / 447.4 MB, free: 42.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.000689/0.165, allocations: 379.3 kB / 447.8 MB, free: 42.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.1651, allocations: 63 kB / 447.9 MB, free: 42.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/0.1652, allocations: 264.7 kB / 448.1 MB, free: 42.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.1653, allocations: 35.86 kB / 448.2 MB, free: 42.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.932e-05/0.1653, allocations: 190 kB / 448.4 MB, free: 42.19 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.399e-05/0.1654, allocations: 104.8 kB / 448.5 MB, free: 42.11 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.872e-05/0.1654, allocations: 73.17 kB / 448.5 MB, free: 42.06 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.21e-05/0.1655, allocations: 344.5 kB / 448.9 MB, free: 41.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.1656, allocations: 89.92 kB / 449 MB, free: 41.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.1658, allocations: 231.7 kB / 449.2 MB, free: 41.51 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002751/0.166, allocations: 341.9 kB / 449.5 MB, free: 41.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.166, allocations: 6.688 kB / 449.5 MB, free: 41.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003738/0.1664, allocations: 370.2 kB / 449.9 MB, free: 41.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1664, allocations: 8.688 kB / 449.9 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.1664, allocations: 2.906 kB / 449.9 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.1665, allocations: 8.812 kB / 449.9 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.1666, allocations: 74.03 kB / 450 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.1666, allocations: 19.03 kB / 450 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.532e-05/0.1667, allocations: 39.94 kB / 450 MB, free: 41.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.1667, allocations: 14.25 kB / 450 MB, free: 41.12 MB / 410.7 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,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.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.0001121/0.1669, allocations: 175 kB / 450.2 MB, free: 40.97 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.655e-05/0.1669, allocations: 34.36 kB / 450.2 MB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003882/0.1673, allocations: 328.8 kB / 450.6 MB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.1673, allocations: 2.812 kB / 450.6 MB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1673, allocations: 3.625 kB / 450.6 MB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1673, allocations: 3.328 kB / 450.6 MB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005086/0.1678, allocations: 0.6693 MB / 451.2 MB, free: 40.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1678, allocations: 0 / 451.2 MB, free: 40.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000136/0.1679, allocations: 51.81 kB / 451.3 MB, free: 40.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1679, allocations: 4 kB / 451.3 MB, free: 40.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.168, allocations: 10.22 kB / 451.3 MB, free: 40.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.168, allocations: 2.5 kB / 451.3 MB, free: 40.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.168, allocations: 0 / 451.3 MB, free: 40.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004559/0.1684, allocations: 0.5263 MB / 451.8 MB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.522e-05/0.1684, allocations: 33.91 kB / 451.9 MB, free: 40.09 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.1685, allocations: 9.469 kB / 451.9 MB, free: 40.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.565e-05/0.1686, allocations: 19.17 kB / 451.9 MB, free: 40.08 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.385e-05/0.1686, allocations: 25.45 kB / 451.9 MB, free: 40.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.1686, allocations: 18.42 kB / 451.9 MB, free: 40.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.025e-05/0.1687, allocations: 184.3 kB / 452.1 MB, free: 39.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1687, allocations: 0 / 452.1 MB, free: 39.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002386/0.1689, allocations: 79.41 kB / 452.2 MB, free: 39.94 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.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.00057/0.1695, allocations: 1.072 MB / 453.3 MB, free: 39.13 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003035/0.1698, allocations: 247.8 kB / 453.5 MB, free: 39.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1698, allocations: 3.5 kB / 453.5 MB, free: 39.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.17, allocations: 125.5 kB / 453.6 MB, free: 39.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.1702, allocations: 44.03 kB / 453.7 MB, free: 39.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/0.1724, allocations: 3.235 MB / 456.9 MB, free: 36.86 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.986e-05/0.1725, allocations: 194.5 kB / 457.1 MB, free: 36.77 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.582e-05/0.1726, allocations: 45.3 kB / 457.2 MB, free: 36.76 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.1727, allocations: 124.9 kB / 457.3 MB, free: 36.67 MB / 410.7 MB Notification: Performance of SimCode: time 1.052e-06/0.1727, allocations: 0 / 457.3 MB, free: 36.67 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01867/0.1914, allocations: 6.861 MB / 464.1 MB, free: 35.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.322/7.513, allocations: 3.438 kB / 464.1 MB, free: 35.34 MB / 410.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/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: 9.563861634582281]