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.001677/0.001677, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002174/0.002174, allocations: 214 kB / 24.52 MB, free: 3.914 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.548/1.548, allocations: 230.6 MB / 258.3 MB, free: 7.766 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.2658/0.2658, allocations: 44.92 MB / 359.6 MB, free: 6.059 MB / 286.1 MB " [Timeout remaining time 179] 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.002127/0.002127, allocations: 63.91 kB / 0.4938 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.362/0.3641, allocations: 65.47 MB / 0.5577 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00393/0.3681, allocations: 2.179 MB / 0.5599 GB, free: 5.336 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.3699, allocations: 0.8541 MB / 0.5607 GB, free: 4.477 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001683/0.37, allocations: 7.938 kB / 0.5607 GB, free: 4.469 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.3702, allocations: 31.55 kB / 0.5607 GB, free: 4.438 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002694/0.3705, allocations: 75.31 kB / 0.5608 GB, free: 4.363 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004952/0.371, allocations: 187.7 kB / 0.561 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005589/0.3715, allocations: 390.9 kB / 0.5613 GB, free: 3.797 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002717/0.3718, allocations: 92.58 kB / 0.5614 GB, free: 3.703 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003242/0.3721, allocations: 171.3 kB / 0.5616 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002798/0.3724, allocations: 163.2 kB / 0.5618 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.692e-05/0.3725, allocations: 36 kB / 0.5618 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.3726, allocations: 48 kB / 0.5618 GB, free: 3.293 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.3727, allocations: 95.67 kB / 0.5619 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001799/0.3729, allocations: 131.3 kB / 0.562 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005432/0.3734, allocations: 420.2 kB / 0.5625 GB, free: 2.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3734, allocations: 0 / 0.5625 GB, free: 2.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3734, allocations: 4 kB / 0.5625 GB, free: 2.656 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.3735, allocations: 0 / 0.5625 GB, free: 2.656 MB / 398.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.001426/0.3749, allocations: 0.7267 MB / 0.5632 GB, free: 1.883 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.3749, allocations: 12.03 kB / 0.5632 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.865e-05/0.375, allocations: 16.8 kB / 0.5632 GB, free: 1.855 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000119/0.3751, allocations: 79.25 kB / 0.5633 GB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000507/0.3756, allocations: 88.61 kB / 0.5634 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005925/0.3762, allocations: 303 kB / 0.5636 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.591e-05/0.3762, allocations: 21.03 kB / 0.5637 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.266e-05/0.3763, allocations: 60 kB / 0.5637 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006451/0.377, allocations: 301.9 kB / 0.564 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.507e-05/0.377, allocations: 11.95 kB / 0.564 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.845e-05/0.377, allocations: 15.98 kB / 0.564 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.377, allocations: 8 kB / 0.564 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000487/0.3775, allocations: 218.5 kB / 0.5642 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001654/0.3792, allocations: 0.7695 MB / 0.565 GB, free: 15.92 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005255/0.3797, allocations: 244 kB / 0.5652 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002697/0.38, allocations: 129.5 kB / 0.5654 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.956e-05/0.38, allocations: 8.312 kB / 0.5654 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005494/0.3806, allocations: 250.5 kB / 0.5656 GB, free: 15.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 2.866e-06/0.3806, allocations: 0 / 0.5656 GB, free: 15.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.002216/0.3828, allocations: 0.8441 MB / 0.5664 GB, free: 14.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/0.3828, allocations: 67.83 kB / 0.5665 GB, free: 14.35 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003198/0.3832, allocations: 264.2 kB / 0.5667 GB, free: 14.08 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.169e-05/0.3832, allocations: 45.69 kB / 0.5668 GB, free: 14.03 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.3834, allocations: 177 kB / 0.567 GB, free: 13.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.3835, allocations: 190.4 kB / 0.5671 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/0.3837, allocations: 106.3 kB / 0.5672 GB, free: 13.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.3839, allocations: 346.8 kB / 0.5676 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003123/0.3842, allocations: 133.2 kB / 0.5677 GB, free: 13.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004235/0.3846, allocations: 303.8 kB / 0.568 GB, free: 12.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000771/0.3854, allocations: 474.9 kB / 0.5684 GB, free: 12.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3854, allocations: 0 / 0.5684 GB, free: 12.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009656/0.3864, allocations: 0.5089 MB / 0.5689 GB, free: 11.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/0.3864, allocations: 14.66 kB / 0.569 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.3864, allocations: 4 kB / 0.569 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.079e-05/0.3864, allocations: 15.94 kB / 0.569 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004883/0.3869, allocations: 111.8 kB / 0.5691 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.998e-05/0.3869, allocations: 11.94 kB / 0.5691 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002526/0.3872, allocations: 27.98 kB / 0.5691 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.92e-05/0.3872, allocations: 20 kB / 0.5691 GB, free: 11.46 MB / 414.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,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.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 (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.0002828/0.3875, allocations: 178.7 kB / 0.5693 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.003e-05/0.3876, allocations: 39.77 kB / 0.5693 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001024/0.3886, allocations: 469.5 kB / 0.5698 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.3886, allocations: 4 kB / 0.5698 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.3886, allocations: 4 kB / 0.5698 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.3886, allocations: 3.984 kB / 0.5698 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002011/0.3907, allocations: 1.006 MB / 0.5708 GB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.116e-06/0.3907, allocations: 4 kB / 0.5708 GB, free: 9.684 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000411/0.3911, allocations: 87.83 kB / 0.5709 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-05/0.3911, allocations: 15.91 kB / 0.5709 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.075e-05/0.3911, allocations: 16.22 kB / 0.5709 GB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.999e-06/0.3911, allocations: 4 kB / 0.5709 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3911, allocations: 0 / 0.5709 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001393/0.3925, allocations: 0.7518 MB / 0.5716 GB, free: 8.773 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.565e-05/0.3926, allocations: 39.81 kB / 0.5717 GB, free: 8.734 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.037e-05/0.3927, allocations: 15.94 kB / 0.5717 GB, free: 8.719 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000238/0.3929, allocations: 23.98 kB / 0.5717 GB, free: 8.695 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.393, allocations: 40.48 kB / 0.5718 GB, free: 8.656 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.376e-05/0.3931, allocations: 24 kB / 0.5718 GB, free: 8.633 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002263/0.3933, allocations: 191.1 kB / 0.572 GB, free: 8.441 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3933, allocations: 3.938 kB / 0.572 GB, free: 8.438 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004923/0.3938, allocations: 79.98 kB / 0.572 GB, free: 8.359 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (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.001715/0.3955, allocations: 1.32 MB / 0.5733 GB, free: 6.984 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008684/0.3964, allocations: 371.3 kB / 0.5737 GB, free: 6.625 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.3964, allocations: 320 / 0.5737 GB, free: 6.625 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003761/0.3967, allocations: 202.3 kB / 0.5739 GB, free: 6.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004771/0.3972, allocations: 45.28 kB / 0.5739 GB, free: 6.387 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005665/0.4029, allocations: 3.861 MB / 0.5777 GB, free: 2.273 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002427/0.4031, allocations: 213.9 kB / 0.5779 GB, free: 2.043 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002412/0.4034, allocations: 59.52 kB / 0.5779 GB, free: 1.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002789/0.4037, allocations: 151.4 kB / 0.5781 GB, free: 1.832 MB / 414.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4037, allocations: 0 / 0.5781 GB, free: 1.832 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03331/0.437, allocations: 7.943 MB / 0.5859 GB, free: 10.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.66, allocations: 4.062 kB / 0.5859 GB, free: 10.07 MB / 430.1 MB " [Timeout remaining time 647] (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: 15.814711846993305] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'mean.y'] 12.823040219023824 12.838917278 12.46219557 Calling exit ...