Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001794/0.001794, allocations: 123.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.002415/0.002415, allocations: 200.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.546/1.546, 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.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.2291/0.2291, allocations: 46.92 MB / 357.1 MB, free: 10.32 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.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 67.89 kB / 0.4909 GB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1271, allocations: 65.99 MB / 0.5554 GB, free: 5.867 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003874/0.131, allocations: 2.316 MB / 0.5576 GB, free: 3.535 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001794/0.1328, allocations: 0.9153 MB / 0.5585 GB, free: 2.613 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.1329, allocations: 7.938 kB / 0.5585 GB, free: 2.605 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001485/0.1331, allocations: 39.53 kB / 0.5586 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002317/0.1333, allocations: 63.34 kB / 0.5586 GB, free: 2.504 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004071/0.1337, allocations: 183.7 kB / 0.5588 GB, free: 2.324 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004362/0.1341, allocations: 394.9 kB / 0.5592 GB, free: 1.938 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000226/0.1344, allocations: 100.2 kB / 0.5593 GB, free: 1.84 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002588/0.1346, allocations: 159.4 kB / 0.5594 GB, free: 1.684 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002314/0.1349, allocations: 163.2 kB / 0.5596 GB, free: 1.523 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.43e-05/0.1349, allocations: 36 kB / 0.5596 GB, free: 1.488 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001035/0.135, allocations: 52 kB / 0.5597 GB, free: 1.438 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.1351, allocations: 91.67 kB / 0.5598 GB, free: 1.348 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000176/0.1353, allocations: 175 kB / 0.5599 GB, free: 1.176 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005016/0.1358, allocations: 410.3 kB / 0.5603 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1358, allocations: 0 / 0.5603 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.668e-06/0.1358, allocations: 8 kB / 0.5603 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.1358, allocations: 0 / 0.5603 GB, free: 0.7656 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.001178/0.137, allocations: 0.665 MB / 0.561 GB, free: 52 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.137, allocations: 8.031 kB / 0.561 GB, free: 44 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001363/0.1372, allocations: 79.33 kB / 0.5611 GB, free: 15.95 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004621/0.1376, allocations: 88.59 kB / 0.5611 GB, free: 15.87 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006311/0.1383, allocations: 364.1 kB / 0.5615 GB, free: 15.47 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.165e-05/0.1383, allocations: 32.95 kB / 0.5615 GB, free: 15.44 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.934e-05/0.1384, allocations: 36.38 kB / 0.5615 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005618/0.1389, allocations: 289.9 kB / 0.5618 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.1389, allocations: 7.938 kB / 0.5618 GB, free: 15.11 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.438e-05/0.139, allocations: 15.98 kB / 0.5618 GB, free: 15.1 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.139, allocations: 4 kB / 0.5619 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000459/0.1394, allocations: 198.5 kB / 0.562 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001446/0.1409, allocations: 0.8622 MB / 0.5629 GB, free: 13.98 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004456/0.1413, allocations: 197.1 kB / 0.5631 GB, free: 13.79 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000215/0.1415, allocations: 88.75 kB / 0.5632 GB, free: 13.7 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.1416, allocations: 11.98 kB / 0.5632 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004249/0.142, allocations: 219.2 kB / 0.5634 GB, free: 13.46 MB / 430.1 MB Notification: Performance of pre-optimization done (n=31): time 1.804e-06/0.142, allocations: 0 / 0.5634 GB, free: 13.46 MB / 430.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008899/0.1429, allocations: 373.2 kB / 0.5637 GB, free: 13.09 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.1429, allocations: 63.41 kB / 0.5638 GB, free: 13.01 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002889/0.1432, allocations: 263 kB / 0.564 GB, free: 12.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.078e-05/0.1433, allocations: 37.69 kB / 0.5641 GB, free: 12.71 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.1434, allocations: 196.9 kB / 0.5643 GB, free: 12.51 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.02e-05/0.1435, allocations: 95.22 kB / 0.5644 GB, free: 12.41 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.1436, allocations: 78.05 kB / 0.5644 GB, free: 12.33 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.1438, allocations: 342.8 kB / 0.5648 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002229/0.144, allocations: 96.69 kB / 0.5649 GB, free: 11.89 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003455/0.1444, allocations: 230.3 kB / 0.5651 GB, free: 11.61 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000556/0.1449, allocations: 340.8 kB / 0.5654 GB, free: 11.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1449, allocations: 0 / 0.5654 GB, free: 11.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007124/0.1456, allocations: 388.8 kB / 0.5658 GB, free: 10.82 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.1456, allocations: 4 kB / 0.5658 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.1457, allocations: 11.98 kB / 0.5658 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.1457, allocations: 4 kB / 0.5658 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002986/0.146, allocations: 76.3 kB / 0.5659 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.146, allocations: 15.98 kB / 0.5659 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.1462, allocations: 35.78 kB / 0.5659 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.1462, allocations: 15.94 kB / 0.5659 GB, free: 10.66 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.0002081/0.1464, allocations: 174.7 kB / 0.5661 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.198e-05/0.1465, allocations: 27.95 kB / 0.5661 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007552/0.1472, allocations: 328.3 kB / 0.5664 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/0.1472, allocations: 4 kB / 0.5664 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1472, allocations: 0 / 0.5664 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.1472, allocations: 0 / 0.5664 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.1484, allocations: 0.7362 MB / 0.5672 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.1484, allocations: 7.984 kB / 0.5672 GB, free: 9.316 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002857/0.1487, allocations: 51.91 kB / 0.5672 GB, free: 9.266 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.974e-06/0.1487, allocations: 4 kB / 0.5672 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.1487, allocations: 4 kB / 0.5672 GB, free: 9.258 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.03e-05/0.1487, allocations: 15.86 kB / 0.5672 GB, free: 9.242 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1487, allocations: 0 / 0.5672 GB, free: 9.242 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000984/0.1497, allocations: 0.5189 MB / 0.5677 GB, free: 8.707 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.891e-05/0.1498, allocations: 112.8 kB / 0.5678 GB, free: 8.578 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.008e-05/0.1499, allocations: 12.06 kB / 0.5679 GB, free: 8.566 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.15, allocations: 19.92 kB / 0.5679 GB, free: 8.547 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.089e-05/0.1501, allocations: 19.97 kB / 0.5679 GB, free: 8.527 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.922e-05/0.1502, allocations: 15.92 kB / 0.5679 GB, free: 8.512 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000222/0.1504, allocations: 190 kB / 0.5681 GB, free: 8.324 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1504, allocations: 0 / 0.5681 GB, free: 8.324 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004431/0.1508, allocations: 75.89 kB / 0.5682 GB, free: 8.25 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.00132/0.1521, allocations: 1.067 MB / 0.5692 GB, free: 7.156 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005876/0.1527, allocations: 251.6 kB / 0.5694 GB, free: 6.91 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1527, allocations: 0 / 0.5694 GB, free: 6.91 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002573/0.153, allocations: 117.3 kB / 0.5696 GB, free: 6.797 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004115/0.1534, allocations: 49.03 kB / 0.5696 GB, free: 6.746 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004641/0.158, allocations: 3.25 MB / 0.5728 GB, free: 3.301 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004511/0.1585, allocations: 0.7959 MB / 0.5736 GB, free: 2.477 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001647/0.1587, allocations: 46.94 kB / 0.5736 GB, free: 2.43 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002073/0.1589, allocations: 131.4 kB / 0.5737 GB, free: 2.301 MB / 430.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1589, allocations: 0 / 0.5737 GB, free: 2.301 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04181/0.2007, allocations: 6.04 MB / 0.5796 GB, free: 12.33 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.282/8.482, allocations: 9.906 kB / 0.5796 GB, free: 12.32 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable Time from file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.x in file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.973152544000186]