Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001655/0.001655, allocations: 120.2 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002018/0.002018, allocations: 205 kB / 21.45 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.576/1.576, allocations: 230.5 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2401/0.2401, allocations: 46.93 MB / 357.7 MB, free: 10.21 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002304/0.002304, allocations: 83.86 kB / 0.4917 GB, free: 7.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1336, allocations: 66.04 MB / 0.5562 GB, free: 5.582 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00366/0.1373, allocations: 2.323 MB / 0.5584 GB, free: 3.238 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.1391, allocations: 0.9114 MB / 0.5593 GB, free: 2.32 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.1392, allocations: 7.938 kB / 0.5593 GB, free: 2.312 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.1394, allocations: 35.53 kB / 0.5594 GB, free: 2.277 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002482/0.1396, allocations: 75.27 kB / 0.5594 GB, free: 2.203 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000429/0.14, allocations: 183.7 kB / 0.5596 GB, free: 2.023 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004615/0.1405, allocations: 390.9 kB / 0.56 GB, free: 1.641 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002525/0.1408, allocations: 96.2 kB / 0.5601 GB, free: 1.547 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003201/0.1411, allocations: 159.4 kB / 0.5602 GB, free: 1.391 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.1413, allocations: 163.2 kB / 0.5604 GB, free: 1.23 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.59e-05/0.1414, allocations: 40 kB / 0.5604 GB, free: 1.191 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.1415, allocations: 55.98 kB / 0.5605 GB, free: 1.137 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.9e-05/0.1416, allocations: 87.69 kB / 0.5606 GB, free: 1.051 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.1418, allocations: 179 kB / 0.5607 GB, free: 0.875 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000492/0.1423, allocations: 406.3 kB / 0.5611 GB, free: 488 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.716e-05/0.1423, allocations: 4 kB / 0.5611 GB, free: 484 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1423, allocations: 0 / 0.5611 GB, free: 484 kB / 414.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1423, allocations: 0 / 0.5611 GB, free: 484 kB / 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.001204/0.1435, allocations: 0.6728 MB / 0.5618 GB, free: 15.75 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.1435, allocations: 8.031 kB / 0.5618 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001207/0.1437, allocations: 75.28 kB / 0.5618 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004534/0.1441, allocations: 76.66 kB / 0.5619 GB, free: 15.59 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005808/0.1447, allocations: 372.1 kB / 0.5623 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.885e-05/0.1447, allocations: 25.03 kB / 0.5623 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.4e-05/0.1448, allocations: 40.31 kB / 0.5623 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005626/0.1453, allocations: 282 kB / 0.5626 GB, free: 14.84 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.1454, allocations: 0 / 0.5626 GB, free: 14.84 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.916e-05/0.1454, allocations: 19.98 kB / 0.5626 GB, free: 14.82 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.1454, allocations: 15.98 kB / 0.5626 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004632/0.1459, allocations: 198.4 kB / 0.5628 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.1474, allocations: 0.8662 MB / 0.5637 GB, free: 13.69 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004313/0.1478, allocations: 190.8 kB / 0.5639 GB, free: 13.5 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002539/0.1481, allocations: 88.81 kB / 0.5639 GB, free: 13.41 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.1481, allocations: 4 kB / 0.5639 GB, free: 13.4 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004413/0.1485, allocations: 223.1 kB / 0.5642 GB, free: 13.17 MB / 430.1 MB Notification: Performance of pre-optimization done (n=31): time 2.264e-06/0.1485, allocations: 4 kB / 0.5642 GB, free: 13.17 MB / 430.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008711/0.1494, allocations: 369.3 kB / 0.5645 GB, free: 12.8 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/0.1494, allocations: 55.41 kB / 0.5646 GB, free: 12.73 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002934/0.1497, allocations: 271 kB / 0.5648 GB, free: 12.46 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.314e-05/0.1498, allocations: 37.7 kB / 0.5649 GB, free: 12.42 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.1499, allocations: 192.9 kB / 0.565 GB, free: 12.23 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.628e-05/0.15, allocations: 107.1 kB / 0.5652 GB, free: 12.12 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.1502, allocations: 78 kB / 0.5652 GB, free: 12.04 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.1503, allocations: 342.8 kB / 0.5656 GB, free: 11.69 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000212/0.1505, allocations: 92.69 kB / 0.5656 GB, free: 11.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003228/0.1509, allocations: 231.1 kB / 0.5659 GB, free: 11.32 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005873/0.1514, allocations: 348.8 kB / 0.5662 GB, free: 10.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.1514, allocations: 0 / 0.5662 GB, free: 10.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007125/0.1522, allocations: 381.3 kB / 0.5666 GB, free: 10.54 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.1522, allocations: 8 kB / 0.5666 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.1522, allocations: 7.984 kB / 0.5666 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.1522, allocations: 4 kB / 0.5666 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003089/0.1525, allocations: 67.91 kB / 0.5666 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/0.1525, allocations: 15.92 kB / 0.5667 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001844/0.1527, allocations: 35.78 kB / 0.5667 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.1527, allocations: 19.92 kB / 0.5667 GB, free: 10.38 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.0002121/0.153, allocations: 174.7 kB / 0.5669 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.097e-05/0.153, allocations: 27.81 kB / 0.5669 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007111/0.1537, allocations: 320.9 kB / 0.5672 GB, free: 9.844 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1537, allocations: 4 kB / 0.5672 GB, free: 9.84 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.1537, allocations: 4 kB / 0.5672 GB, free: 9.836 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.1537, allocations: 7.984 kB / 0.5672 GB, free: 9.828 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.1548, allocations: 0.7323 MB / 0.5679 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.1548, allocations: 0 / 0.5679 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002596/0.1551, allocations: 51.91 kB / 0.568 GB, free: 8.988 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.1551, allocations: 4 kB / 0.568 GB, free: 8.984 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.922e-05/0.1551, allocations: 11.98 kB / 0.568 GB, free: 8.973 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.1551, allocations: 8.031 kB / 0.568 GB, free: 8.965 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1551, allocations: 7.875 kB / 0.568 GB, free: 8.957 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009373/0.1561, allocations: 0.515 MB / 0.5685 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.277e-05/0.1562, allocations: 108.8 kB / 0.5686 GB, free: 8.301 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.02e-05/0.1562, allocations: 16.19 kB / 0.5686 GB, free: 8.285 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.1564, allocations: 24.06 kB / 0.5687 GB, free: 8.262 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.808e-05/0.1565, allocations: 23.95 kB / 0.5687 GB, free: 8.238 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.629e-05/0.1565, allocations: 11.98 kB / 0.5687 GB, free: 8.227 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002067/0.1567, allocations: 190 kB / 0.5689 GB, free: 8.039 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1567, allocations: 0 / 0.5689 GB, free: 8.039 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003922/0.1571, allocations: 67.89 kB / 0.5689 GB, free: 7.973 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.00128/0.1584, allocations: 1.087 MB / 0.57 GB, free: 6.859 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005618/0.159, allocations: 248.1 kB / 0.5702 GB, free: 6.617 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.159, allocations: 0 / 0.5702 GB, free: 6.617 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002477/0.1592, allocations: 119.8 kB / 0.5704 GB, free: 6.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.1596, allocations: 40.81 kB / 0.5704 GB, free: 6.457 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004421/0.164, allocations: 3.25 MB / 0.5736 GB, free: 3.02 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004887/0.1645, allocations: 0.7997 MB / 0.5744 GB, free: 2.191 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001595/0.1646, allocations: 43.23 kB / 0.5744 GB, free: 2.148 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.1649, allocations: 127.4 kB / 0.5745 GB, free: 2.023 MB / 430.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1649, allocations: 0 / 0.5745 GB, free: 2.023 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04008/0.2049, allocations: 6.06 MB / 0.5804 GB, free: 12.03 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.374/8.579, allocations: 11.3 kB / 0.5804 GB, free: 12.02 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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-beta_om_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.959891942795366] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'yMean', 'yRectifiedMean', 'yRootMeanSquare', 'yHarmonicCos', 'yHarmonicSin', 'yHarmonicAbs', 'yHarmonicArg'] 8.648046654649079 8.909060248 8.518370101 Calling exit ...