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.001362/0.001362, allocations: 116.5 kB / 18.5 MB, free: 4.434 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.001533/0.001533, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.562/1.562, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.2343/0.2343, allocations: 46.89 MB / 357.4 MB, free: 10.5 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.002416/0.002416, allocations: 87.86 kB / 0.4912 GB, free: 8.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.14, allocations: 65.98 MB / 0.5557 GB, free: 6.418 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004074/0.144, allocations: 2.322 MB / 0.5579 GB, free: 4.074 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001791/0.1458, allocations: 0.9152 MB / 0.5588 GB, free: 3.152 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001948/0.146, allocations: 4 kB / 0.5588 GB, free: 3.148 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001821/0.1462, allocations: 43.47 kB / 0.5589 GB, free: 3.105 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002685/0.1465, allocations: 63.41 kB / 0.5589 GB, free: 3.043 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005032/0.147, allocations: 183.6 kB / 0.5591 GB, free: 2.863 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004413/0.1474, allocations: 390.9 kB / 0.5595 GB, free: 2.48 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002421/0.1477, allocations: 100.2 kB / 0.5596 GB, free: 2.383 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002679/0.1479, allocations: 151.4 kB / 0.5597 GB, free: 2.234 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002262/0.1482, allocations: 167.2 kB / 0.5599 GB, free: 2.07 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.068e-05/0.1482, allocations: 36 kB / 0.5599 GB, free: 2.035 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000106/0.1483, allocations: 55.98 kB / 0.56 GB, free: 1.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.807e-05/0.1484, allocations: 95.62 kB / 0.56 GB, free: 1.887 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001753/0.1486, allocations: 167.1 kB / 0.5602 GB, free: 1.723 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005343/0.1491, allocations: 410.3 kB / 0.5606 GB, free: 1.32 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1491, allocations: 4 kB / 0.5606 GB, free: 1.316 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1491, allocations: 0 / 0.5606 GB, free: 1.316 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.1491, allocations: 0 / 0.5606 GB, free: 1.316 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.001233/0.1504, allocations: 0.6689 MB / 0.5613 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.1504, allocations: 8.031 kB / 0.5613 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001169/0.1505, allocations: 83.22 kB / 0.5613 GB, free: 0.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004684/0.151, allocations: 76.66 kB / 0.5614 GB, free: 436 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006061/0.1516, allocations: 372.2 kB / 0.5618 GB, free: 24 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.468e-05/0.1516, allocations: 21.03 kB / 0.5618 GB, free: 4 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.468e-05/0.1517, allocations: 44.3 kB / 0.5618 GB, free: 15.96 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00055/0.1523, allocations: 285.9 kB / 0.5621 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.1523, allocations: 0 / 0.5621 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.681e-05/0.1523, allocations: 19.98 kB / 0.5621 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.1523, allocations: 8 kB / 0.5621 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004513/0.1528, allocations: 194.5 kB / 0.5623 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00149/0.1543, allocations: 0.8661 MB / 0.5632 GB, free: 14.54 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004213/0.1547, allocations: 190.8 kB / 0.5633 GB, free: 14.35 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002073/0.1549, allocations: 92.81 kB / 0.5634 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.1549, allocations: 7.984 kB / 0.5634 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004442/0.1554, allocations: 219.2 kB / 0.5637 GB, free: 14.02 MB / 430.1 MB Notification: Performance of pre-optimization done (n=31): time 2.134e-06/0.1554, allocations: 3.938 kB / 0.5637 GB, free: 14.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008651/0.1562, allocations: 373.8 kB / 0.564 GB, free: 13.64 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.1563, allocations: 59.41 kB / 0.5641 GB, free: 13.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002967/0.1566, allocations: 271 kB / 0.5643 GB, free: 13.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.783e-05/0.1566, allocations: 37.7 kB / 0.5644 GB, free: 13.26 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.1568, allocations: 188.9 kB / 0.5645 GB, free: 13.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.961e-05/0.1569, allocations: 107.1 kB / 0.5646 GB, free: 12.96 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.157, allocations: 70.06 kB / 0.5647 GB, free: 12.88 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1571, allocations: 342.8 kB / 0.565 GB, free: 12.54 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002187/0.1574, allocations: 92.69 kB / 0.5651 GB, free: 12.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003224/0.1577, allocations: 235 kB / 0.5654 GB, free: 12.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005624/0.1582, allocations: 348.9 kB / 0.5657 GB, free: 11.76 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1583, allocations: 0 / 0.5657 GB, free: 11.76 MB / 430.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007321/0.159, allocations: 385.1 kB / 0.5661 GB, free: 11.38 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.159, allocations: 11.98 kB / 0.5661 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.159, allocations: 4 kB / 0.5661 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.266e-05/0.159, allocations: 4 kB / 0.5661 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003326/0.1594, allocations: 75.84 kB / 0.5661 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.1594, allocations: 11.98 kB / 0.5662 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/0.1596, allocations: 31.78 kB / 0.5662 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.964e-05/0.1596, allocations: 28.11 kB / 0.5662 GB, free: 11.21 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.0002202/0.1598, allocations: 161.7 kB / 0.5664 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.717e-05/0.1599, allocations: 27.81 kB / 0.5664 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007142/0.1606, allocations: 328.2 kB / 0.5667 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.1606, allocations: 8 kB / 0.5667 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.1606, allocations: 0 / 0.5667 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.1606, allocations: 4.078 kB / 0.5667 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.1617, allocations: 0.7362 MB / 0.5674 GB, free: 9.875 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1617, allocations: 0 / 0.5674 GB, free: 9.875 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002657/0.162, allocations: 47.91 kB / 0.5675 GB, free: 9.828 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.162, allocations: 4 kB / 0.5675 GB, free: 9.824 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.974e-05/0.162, allocations: 11.98 kB / 0.5675 GB, free: 9.812 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.162, allocations: 7.938 kB / 0.5675 GB, free: 9.805 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.162, allocations: 3.938 kB / 0.5675 GB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009741/0.163, allocations: 0.5227 MB / 0.568 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.1631, allocations: 112.9 kB / 0.5681 GB, free: 9.133 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.318e-05/0.1632, allocations: 12 kB / 0.5681 GB, free: 9.121 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001844/0.1633, allocations: 19.92 kB / 0.5682 GB, free: 9.102 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.264e-05/0.1634, allocations: 19.97 kB / 0.5682 GB, free: 9.082 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.204e-05/0.1634, allocations: 15.98 kB / 0.5682 GB, free: 9.066 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001984/0.1636, allocations: 186 kB / 0.5684 GB, free: 8.883 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1636, allocations: 0 / 0.5684 GB, free: 8.883 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004128/0.1641, allocations: 71.89 kB / 0.5684 GB, free: 8.812 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.001306/0.1654, allocations: 1.072 MB / 0.5695 GB, free: 7.715 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000592/0.166, allocations: 251.9 kB / 0.5697 GB, free: 7.469 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.166, allocations: 0 / 0.5697 GB, free: 7.469 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002586/0.1662, allocations: 120.4 kB / 0.5698 GB, free: 7.352 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.1666, allocations: 52.7 kB / 0.5699 GB, free: 7.301 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004536/0.1711, allocations: 3.251 MB / 0.5731 GB, free: 3.859 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004582/0.1716, allocations: 0.7997 MB / 0.5738 GB, free: 3.031 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001797/0.1718, allocations: 42.91 kB / 0.5739 GB, free: 2.988 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.172, allocations: 131.4 kB / 0.574 GB, free: 2.859 MB / 430.1 MB Notification: Performance of SimCode: time 9.32e-07/0.172, allocations: 0 / 0.574 GB, free: 2.859 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03426/0.2062, allocations: 6.042 MB / 0.5799 GB, free: 12.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.57/8.777, allocations: 7.172 kB / 0.5799 GB, free: 12.88 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 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.820004233624786] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'mean.y'] 8.850818497128785 8.875821015 8.722165365 Calling exit ...