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.00194/0.00194, allocations: 122.2 kB / 18.5 MB, free: 4.562 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.002175/0.002175, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.553/1.553, allocations: 230.6 MB / 254.8 MB, free: 14.95 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.2252/0.2252, allocations: 44.9 MB / 355.8 MB, free: 12.33 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="cs",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.003172/0.003172, allocations: 70.06 kB / 0.4885 GB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1475, allocations: 65.42 MB / 0.5524 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004006/0.1515, allocations: 2.315 MB / 0.5547 GB, free: 7.84 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001851/0.1533, allocations: 0.9075 MB / 0.5556 GB, free: 6.926 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002357/0.1536, allocations: 15.88 kB / 0.5556 GB, free: 6.91 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001764/0.1537, allocations: 35.53 kB / 0.5556 GB, free: 6.875 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003012/0.154, allocations: 63.39 kB / 0.5557 GB, free: 6.812 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005339/0.1546, allocations: 187.6 kB / 0.5559 GB, free: 6.629 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000575/0.1551, allocations: 390.9 kB / 0.5562 GB, free: 6.246 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002728/0.1554, allocations: 108.4 kB / 0.5563 GB, free: 6.141 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003301/0.1557, allocations: 159.4 kB / 0.5565 GB, free: 5.984 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002998/0.156, allocations: 163.2 kB / 0.5567 GB, free: 5.824 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.812e-05/0.1561, allocations: 36 kB / 0.5567 GB, free: 5.789 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.1563, allocations: 52 kB / 0.5567 GB, free: 5.738 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.1564, allocations: 95.61 kB / 0.5568 GB, free: 5.645 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002069/0.1566, allocations: 171.1 kB / 0.557 GB, free: 5.477 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005806/0.1572, allocations: 414.2 kB / 0.5574 GB, free: 5.07 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1572, allocations: 8 kB / 0.5574 GB, free: 5.062 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1572, allocations: 0 / 0.5574 GB, free: 5.062 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.445e-05/0.1572, allocations: 0 / 0.5574 GB, free: 5.062 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.001472/0.1587, allocations: 0.665 MB / 0.558 GB, free: 4.348 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.1587, allocations: 8.031 kB / 0.5581 GB, free: 4.34 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.157e-05/0.1588, allocations: 20.81 kB / 0.5581 GB, free: 4.32 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000126/0.1589, allocations: 83.27 kB / 0.5582 GB, free: 4.227 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005006/0.1594, allocations: 84.61 kB / 0.5582 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006316/0.16, allocations: 368.1 kB / 0.5586 GB, free: 3.746 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.415e-05/0.16, allocations: 29.03 kB / 0.5586 GB, free: 3.719 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.174e-05/0.1601, allocations: 44.12 kB / 0.5587 GB, free: 3.676 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006288/0.1607, allocations: 302 kB / 0.5589 GB, free: 3.379 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.1608, allocations: 7.891 kB / 0.5589 GB, free: 3.371 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.688e-05/0.1608, allocations: 16 kB / 0.559 GB, free: 3.355 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.1608, allocations: 11.94 kB / 0.559 GB, free: 3.344 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005298/0.1614, allocations: 226.5 kB / 0.5592 GB, free: 3.117 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001704/0.1631, allocations: 0.886 MB / 0.5601 GB, free: 2.176 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005245/0.1636, allocations: 243.8 kB / 0.5603 GB, free: 1.926 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.1639, allocations: 130.9 kB / 0.5604 GB, free: 1.797 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.835e-05/0.1639, allocations: 12.3 kB / 0.5604 GB, free: 1.785 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005805/0.1645, allocations: 254.3 kB / 0.5607 GB, free: 1.523 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 2.425e-06/0.1645, allocations: 0 / 0.5607 GB, free: 1.523 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.003506/0.168, allocations: 1.324 MB / 0.562 GB, free: 156 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.007e-05/0.1681, allocations: 63.84 kB / 0.562 GB, free: 80 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003375/0.1684, allocations: 270.9 kB / 0.5623 GB, free: 15.8 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.867e-05/0.1685, allocations: 41.7 kB / 0.5623 GB, free: 15.76 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.1686, allocations: 181 kB / 0.5625 GB, free: 15.57 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/0.1688, allocations: 182.5 kB / 0.5627 GB, free: 15.39 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001624/0.1689, allocations: 106.2 kB / 0.5628 GB, free: 15.29 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.1691, allocations: 346.8 kB / 0.5631 GB, free: 14.94 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000303/0.1694, allocations: 137 kB / 0.5632 GB, free: 14.8 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000442/0.1699, allocations: 301.2 kB / 0.5635 GB, free: 14.44 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00083/0.1707, allocations: 486.2 kB / 0.564 GB, free: 13.89 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1707, allocations: 0 / 0.564 GB, free: 13.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009892/0.1717, allocations: 0.5011 MB / 0.5645 GB, free: 13.39 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.1717, allocations: 8 kB / 0.5645 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.1717, allocations: 4 kB / 0.5645 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.431e-05/0.1717, allocations: 16.08 kB / 0.5645 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004524/0.1722, allocations: 115.8 kB / 0.5646 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.833e-05/0.1722, allocations: 11.98 kB / 0.5646 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002336/0.1724, allocations: 27.98 kB / 0.5646 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.948e-05/0.1725, allocations: 23.98 kB / 0.5647 GB, free: 13.18 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (69): * Single equations (assignments): 69 * 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.0002208/0.1727, allocations: 189 kB / 0.5648 GB, free: 12.99 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.799e-05/0.1728, allocations: 39.7 kB / 0.5649 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009518/0.1737, allocations: 463.1 kB / 0.5653 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.1737, allocations: 15.94 kB / 0.5653 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1737, allocations: 0 / 0.5653 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.1738, allocations: 0 / 0.5653 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001891/0.1756, allocations: 1.085 MB / 0.5664 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1756, allocations: 0 / 0.5664 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003887/0.176, allocations: 87.89 kB / 0.5665 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.129e-05/0.176, allocations: 7.938 kB / 0.5665 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.837e-05/0.1761, allocations: 15.98 kB / 0.5665 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.1761, allocations: 4 kB / 0.5665 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.1761, allocations: 8.219 kB / 0.5665 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.1774, allocations: 0.7498 MB / 0.5673 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.1775, allocations: 116.9 kB / 0.5674 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.385e-05/0.1776, allocations: 19.92 kB / 0.5674 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.1778, allocations: 12 kB / 0.5674 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.1779, allocations: 52.31 kB / 0.5674 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.887e-05/0.178, allocations: 19.98 kB / 0.5675 GB, free: 10.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002046/0.1782, allocations: 186 kB / 0.5676 GB, free: 9.996 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1782, allocations: 0 / 0.5676 GB, free: 9.996 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004737/0.1786, allocations: 83.98 kB / 0.5677 GB, free: 9.914 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (56): * Single equations (assignments): 51 * 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.001757/0.1804, allocations: 1.317 MB / 0.569 GB, free: 8.547 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008238/0.1812, allocations: 383.8 kB / 0.5694 GB, free: 8.172 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1812, allocations: 256 / 0.5694 GB, free: 8.172 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003843/0.1816, allocations: 194.3 kB / 0.5696 GB, free: 7.984 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004557/0.1821, allocations: 61.64 kB / 0.5696 GB, free: 7.926 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005993/0.1881, allocations: 3.861 MB / 0.5734 GB, free: 3.809 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004967/0.1886, allocations: 0.8173 MB / 0.5742 GB, free: 2.961 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002103/0.1888, allocations: 55.27 kB / 0.5742 GB, free: 2.906 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002531/0.189, allocations: 147.4 kB / 0.5744 GB, free: 2.762 MB / 430.1 MB Notification: Performance of SimCode: time 1.332e-06/0.189, allocations: 0 / 0.5744 GB, free: 2.762 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02941/0.2184, allocations: 7.473 MB / 0.5817 GB, free: 11.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.916/9.134, allocations: 8.672 kB / 0.5817 GB, free: 11.36 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.476019914029166] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'mean.y'] 9.265302713029087 9.581322245 9.124542447 Calling exit ...