Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001473/0.001473, allocations: 116.9 kB / 18.49 MB, free: 4.559 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.001606/0.001606, allocations: 212.7 kB / 21.46 MB, free: 1.605 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.387/1.387, allocations: 230.4 MB / 254.7 MB, free: 15.18 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2173/0.2173, allocations: 46.92 MB / 357.7 MB, free: 10.19 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Blocks_Mean",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002232/0.002232, allocations: 76.22 kB / 0.4916 GB, free: 7.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1426, allocations: 66.05 MB / 0.5562 GB, free: 5.523 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003562/0.1462, allocations: 2.323 MB / 0.5584 GB, free: 3.18 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.1477, allocations: 0.9114 MB / 0.5593 GB, free: 2.262 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.1478, allocations: 7.938 kB / 0.5593 GB, free: 2.254 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001326/0.148, allocations: 31.55 kB / 0.5593 GB, free: 2.223 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002303/0.1482, allocations: 71.31 kB / 0.5594 GB, free: 2.152 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000375/0.1486, allocations: 179.7 kB / 0.5596 GB, free: 1.977 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004225/0.149, allocations: 398.8 kB / 0.56 GB, free: 1.586 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002118/0.1492, allocations: 96.22 kB / 0.5601 GB, free: 1.492 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002413/0.1494, allocations: 155.4 kB / 0.5602 GB, free: 1.34 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002641/0.1497, allocations: 167.2 kB / 0.5604 GB, free: 1.176 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.591e-05/0.1498, allocations: 36 kB / 0.5604 GB, free: 1.141 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.594e-05/0.1499, allocations: 51.98 kB / 0.5605 GB, free: 1.09 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.15, allocations: 87.69 kB / 0.5605 GB, free: 1.004 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001756/0.1501, allocations: 183 kB / 0.5607 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004548/0.1506, allocations: 406.3 kB / 0.5611 GB, free: 436 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1506, allocations: 0 / 0.5611 GB, free: 436 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1506, allocations: 0 / 0.5611 GB, free: 436 kB / 414.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.1506, allocations: 0 / 0.5611 GB, free: 436 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.00117/0.1518, allocations: 0.6727 MB / 0.5618 GB, free: 15.7 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.1518, allocations: 16.03 kB / 0.5618 GB, free: 15.69 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.136e-05/0.1519, allocations: 12.84 kB / 0.5618 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000106/0.152, allocations: 83.27 kB / 0.5619 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004587/0.1524, allocations: 80.61 kB / 0.5619 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005596/0.153, allocations: 380 kB / 0.5623 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.153, allocations: 29.03 kB / 0.5623 GB, free: 15.07 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.551e-05/0.1531, allocations: 40.12 kB / 0.5624 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005948/0.1537, allocations: 305.9 kB / 0.5627 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.1537, allocations: 7.953 kB / 0.5627 GB, free: 14.72 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.1537, allocations: 12 kB / 0.5627 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.1538, allocations: 8 kB / 0.5627 GB, free: 14.7 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005084/0.1543, allocations: 222.5 kB / 0.5629 GB, free: 14.48 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001522/0.1558, allocations: 0.8978 MB / 0.5638 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004979/0.1563, allocations: 239.8 kB / 0.564 GB, free: 13.28 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002674/0.1565, allocations: 135.8 kB / 0.5641 GB, free: 13.14 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.52e-05/0.1566, allocations: 4.328 kB / 0.5641 GB, free: 13.14 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004871/0.1571, allocations: 263 kB / 0.5644 GB, free: 12.87 MB / 430.1 MB Notification: Performance of pre-optimization done (n=45): time 1.783e-06/0.1571, allocations: 0 / 0.5644 GB, free: 12.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=54): time 0.003335/0.1604, allocations: 1.324 MB / 0.5657 GB, free: 11.5 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.52e-05/0.1605, allocations: 59.84 kB / 0.5657 GB, free: 11.43 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000296/0.1608, allocations: 274.9 kB / 0.566 GB, free: 11.16 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.325e-05/0.1608, allocations: 37.7 kB / 0.566 GB, free: 11.11 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.161, allocations: 189 kB / 0.5662 GB, free: 10.92 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/0.1611, allocations: 178.5 kB / 0.5664 GB, free: 10.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.1613, allocations: 98.23 kB / 0.5665 GB, free: 10.64 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.1615, allocations: 346.8 kB / 0.5668 GB, free: 10.3 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002934/0.1618, allocations: 137 kB / 0.5669 GB, free: 10.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004399/0.1622, allocations: 305.2 kB / 0.5672 GB, free: 9.797 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007763/0.163, allocations: 483 kB / 0.5677 GB, free: 9.254 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.088e-05/0.163, allocations: 4 kB / 0.5677 GB, free: 9.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009107/0.1639, allocations: 0.5087 MB / 0.5682 GB, free: 8.734 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.1639, allocations: 8 kB / 0.5682 GB, free: 8.727 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.1639, allocations: 4 kB / 0.5682 GB, free: 8.723 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.164, allocations: 11.94 kB / 0.5682 GB, free: 8.711 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004663/0.1644, allocations: 119.8 kB / 0.5683 GB, free: 8.594 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.658e-05/0.1644, allocations: 15.88 kB / 0.5683 GB, free: 8.578 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002184/0.1647, allocations: 24.2 kB / 0.5684 GB, free: 8.555 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.735e-05/0.1647, allocations: 28 kB / 0.5684 GB, free: 8.527 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.0002103/0.1649, allocations: 177.6 kB / 0.5686 GB, free: 8.344 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.644e-05/0.165, allocations: 39.77 kB / 0.5686 GB, free: 8.305 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009461/0.1659, allocations: 471.1 kB / 0.569 GB, free: 7.836 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.1659, allocations: 4 kB / 0.5691 GB, free: 7.832 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1659, allocations: 0 / 0.5691 GB, free: 7.832 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.1659, allocations: 7.984 kB / 0.5691 GB, free: 7.824 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001842/0.1678, allocations: 1.081 MB / 0.5701 GB, free: 6.664 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1678, allocations: 0 / 0.5701 GB, free: 6.664 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003613/0.1682, allocations: 83.89 kB / 0.5702 GB, free: 6.582 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.1682, allocations: 11.94 kB / 0.5702 GB, free: 6.57 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.756e-05/0.1682, allocations: 16.2 kB / 0.5702 GB, free: 6.555 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.476e-06/0.1682, allocations: 15.92 kB / 0.5702 GB, free: 6.539 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1682, allocations: 4 kB / 0.5702 GB, free: 6.535 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.1695, allocations: 0.7537 MB / 0.571 GB, free: 5.746 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.1696, allocations: 113 kB / 0.5711 GB, free: 5.617 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.325e-05/0.1696, allocations: 27.98 kB / 0.5711 GB, free: 5.59 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.1699, allocations: 19.98 kB / 0.5711 GB, free: 5.57 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.752e-05/0.1699, allocations: 36.39 kB / 0.5712 GB, free: 5.535 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.75e-05/0.17, allocations: 23.98 kB / 0.5712 GB, free: 5.512 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001953/0.1702, allocations: 190 kB / 0.5714 GB, free: 5.328 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1702, allocations: 0 / 0.5714 GB, free: 5.328 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004135/0.1706, allocations: 76 kB / 0.5714 GB, free: 5.254 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.001548/0.1721, allocations: 1.322 MB / 0.5727 GB, free: 3.879 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0007553/0.1729, allocations: 383.8 kB / 0.5731 GB, free: 3.504 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1729, allocations: 4.188 kB / 0.5731 GB, free: 3.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003583/0.1733, allocations: 190.5 kB / 0.5733 GB, free: 3.316 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/0.1737, allocations: 48.81 kB / 0.5733 GB, free: 3.27 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005256/0.1789, allocations: 3.845 MB / 0.5771 GB, free: 15.17 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004906/0.1794, allocations: 0.8251 MB / 0.5779 GB, free: 14.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000214/0.1796, allocations: 59.53 kB / 0.5779 GB, free: 14.26 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002443/0.1799, allocations: 147.4 kB / 0.5781 GB, free: 14.11 MB / 446.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1799, allocations: 0 / 0.5781 GB, free: 14.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02666/0.2065, allocations: 7.469 MB / 0.5854 GB, free: 6.711 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.639/8.846, allocations: 8 kB / 0.5854 GB, free: 6.703 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.861153625010047] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'yMean', 'yRectifiedMean', 'yRootMeanSquare', 'yHarmonicCos', 'yHarmonicSin', 'yHarmonicAbs', 'yHarmonicArg'] 8.968980494013522 9.178467057 9.025302358 Calling exit ...