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.001613/0.001613, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001928/0.001928, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.514/1.514, allocations: 230.5 MB / 258.2 MB, free: 8.043 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.2304/0.2304, allocations: 46.93 MB / 361.6 MB, free: 4.215 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.002394/0.002394, allocations: 83.86 kB / 0.497 GB, free: 7.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3326, allocations: 66.08 MB / 0.5615 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00367/0.3363, allocations: 2.326 MB / 0.5638 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.3379, allocations: 0.9202 MB / 0.5647 GB, free: 1.078 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.338, allocations: 7.938 kB / 0.5647 GB, free: 1.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.3382, allocations: 47.47 kB / 0.5647 GB, free: 1.023 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002254/0.3384, allocations: 67.38 kB / 0.5648 GB, free: 0.957 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004047/0.3388, allocations: 187.6 kB / 0.565 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000419/0.3392, allocations: 386.9 kB / 0.5653 GB, free: 404 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002221/0.3394, allocations: 96.58 kB / 0.5654 GB, free: 304 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002572/0.3397, allocations: 167.3 kB / 0.5656 GB, free: 136 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.34, allocations: 159.2 kB / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.618e-05/0.34, allocations: 36 kB / 0.5658 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.888e-05/0.3401, allocations: 51.98 kB / 0.5658 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.3402, allocations: 91.62 kB / 0.5659 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001635/0.3404, allocations: 175.1 kB / 0.5661 GB, free: 15.63 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004566/0.3408, allocations: 412.4 kB / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3408, allocations: 0 / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3408, allocations: 4 kB / 0.5665 GB, free: 15.22 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.3408, allocations: 0 / 0.5665 GB, free: 15.22 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.001371/0.3422, allocations: 0.7266 MB / 0.5672 GB, free: 14.45 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.3423, allocations: 12.03 kB / 0.5672 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001282/0.3424, allocations: 79.25 kB / 0.5673 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004752/0.3429, allocations: 84.61 kB / 0.5674 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005507/0.3434, allocations: 295 kB / 0.5676 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.156e-05/0.3434, allocations: 28.97 kB / 0.5677 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.508e-05/0.3435, allocations: 40.36 kB / 0.5677 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005648/0.3441, allocations: 286 kB / 0.568 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.3441, allocations: 0 / 0.568 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.196e-05/0.3441, allocations: 15.94 kB / 0.568 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.3441, allocations: 4 kB / 0.568 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004633/0.3446, allocations: 206.5 kB / 0.5682 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.3461, allocations: 0.8197 MB / 0.569 GB, free: 12.52 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004435/0.3465, allocations: 198.8 kB / 0.5692 GB, free: 12.32 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002088/0.3467, allocations: 89.69 kB / 0.5693 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.3468, allocations: 3.984 kB / 0.5693 GB, free: 12.22 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004209/0.3472, allocations: 231.2 kB / 0.5695 GB, free: 11.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.824e-06/0.3472, allocations: 0 / 0.5695 GB, free: 11.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.000849/0.348, allocations: 373.3 kB / 0.5698 GB, free: 11.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/0.3481, allocations: 59.41 kB / 0.5699 GB, free: 11.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.3484, allocations: 264.2 kB / 0.5702 GB, free: 11.28 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.3484, allocations: 37.7 kB / 0.5702 GB, free: 11.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.3486, allocations: 196.9 kB / 0.5704 GB, free: 11.04 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.347e-05/0.3487, allocations: 99.16 kB / 0.5705 GB, free: 10.94 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.3488, allocations: 74.06 kB / 0.5705 GB, free: 10.86 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.349, allocations: 354.7 kB / 0.5709 GB, free: 10.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000215/0.3492, allocations: 88.7 kB / 0.571 GB, free: 10.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003179/0.3495, allocations: 226.5 kB / 0.5712 GB, free: 10.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005528/0.35, allocations: 336.9 kB / 0.5715 GB, free: 9.742 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.35, allocations: 3.984 kB / 0.5715 GB, free: 9.738 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007368/0.3508, allocations: 376.8 kB / 0.5719 GB, free: 9.363 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.3508, allocations: 8.469 kB / 0.5719 GB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.3508, allocations: 4 kB / 0.5719 GB, free: 9.352 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/0.3508, allocations: 12 kB / 0.5719 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003098/0.3511, allocations: 75.83 kB / 0.572 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.3512, allocations: 4 kB / 0.572 GB, free: 9.262 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001911/0.3513, allocations: 35.92 kB / 0.572 GB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.589e-05/0.3514, allocations: 27.88 kB / 0.572 GB, free: 9.199 MB / 414.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,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.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.0002004/0.3516, allocations: 169.8 kB / 0.5722 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.141e-05/0.3516, allocations: 35.81 kB / 0.5722 GB, free: 8.988 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006845/0.3523, allocations: 320.3 kB / 0.5725 GB, free: 8.664 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3523, allocations: 4 kB / 0.5725 GB, free: 8.66 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3523, allocations: 0 / 0.5725 GB, free: 8.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.3523, allocations: 7.984 kB / 0.5725 GB, free: 8.652 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.3534, allocations: 0.7041 MB / 0.5732 GB, free: 7.898 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3534, allocations: 0 / 0.5732 GB, free: 7.898 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002602/0.3537, allocations: 51.91 kB / 0.5733 GB, free: 7.848 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.3537, allocations: 0 / 0.5733 GB, free: 7.848 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.924e-05/0.3537, allocations: 11.98 kB / 0.5733 GB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.151e-05/0.3537, allocations: 7.938 kB / 0.5733 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3537, allocations: 0 / 0.5733 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009503/0.3547, allocations: 0.5272 MB / 0.5738 GB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.044e-05/0.3547, allocations: 27.75 kB / 0.5738 GB, free: 7.258 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.831e-05/0.3548, allocations: 12 kB / 0.5738 GB, free: 7.246 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001701/0.355, allocations: 15.92 kB / 0.5739 GB, free: 7.23 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.813e-05/0.3551, allocations: 27.95 kB / 0.5739 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.3551, allocations: 15.98 kB / 0.5739 GB, free: 7.188 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002178/0.3553, allocations: 191.1 kB / 0.5741 GB, free: 7.004 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3553, allocations: 0 / 0.5741 GB, free: 7.004 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003986/0.3557, allocations: 75.78 kB / 0.5742 GB, free: 6.93 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.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.001249/0.3569, allocations: 1.079 MB / 0.5752 GB, free: 5.824 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006019/0.3575, allocations: 245 kB / 0.5754 GB, free: 5.586 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3576, allocations: 0 / 0.5754 GB, free: 5.586 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002898/0.3578, allocations: 127.9 kB / 0.5756 GB, free: 5.461 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004097/0.3583, allocations: 49.11 kB / 0.5756 GB, free: 5.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004515/0.3628, allocations: 3.245 MB / 0.5788 GB, free: 1.961 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004918/0.3633, allocations: 0.7958 MB / 0.5796 GB, free: 1.137 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001559/0.3634, allocations: 38.97 kB / 0.5796 GB, free: 1.098 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000201/0.3636, allocations: 127.4 kB / 0.5797 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3636, allocations: 0 / 0.5797 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03069/0.3943, allocations: 6.225 MB / 0.5858 GB, free: 10.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.57/8.965, allocations: 6.406 kB / 0.5858 GB, free: 10.81 MB / 430.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.832894501276314] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'yMean', 'yRectifiedMean', 'yRootMeanSquare', 'yHarmonicCos', 'yHarmonicSin', 'yHarmonicAbs', 'yHarmonicArg'] 9.038023945875466 9.055339968 8.711023652 Calling exit ...