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.001436/0.001436, allocations: 105.7 kB / 19.74 MB, free: 2.453 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.001605/0.001605, allocations: 219.6 kB / 22.92 MB, free: 5.191 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.325/1.325, allocations: 230.2 MB / 256.2 MB, free: 8.594 MB / 206.1 MB " [Timeout remaining time 179] 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.2099/0.2099, allocations: 46.9 MB / 359.3 MB, free: 4.969 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.002141/0.002141, allocations: 79.86 kB / 0.494 GB, free: 9.102 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2762, allocations: 65.98 MB / 0.5584 GB, free: 5.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003322/0.2795, allocations: 2.333 MB / 0.5607 GB, free: 2.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.281, allocations: 0.9124 MB / 0.5616 GB, free: 1.906 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.2811, allocations: 11.94 kB / 0.5616 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.2812, allocations: 39.53 kB / 0.5616 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.2814, allocations: 59.41 kB / 0.5617 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003522/0.2818, allocations: 187.6 kB / 0.5619 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003981/0.2822, allocations: 390.9 kB / 0.5622 GB, free: 1.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.2824, allocations: 104 kB / 0.5623 GB, free: 1.133 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002267/0.2826, allocations: 147.4 kB / 0.5625 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.2828, allocations: 167.2 kB / 0.5626 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.307e-05/0.2829, allocations: 36 kB / 0.5627 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.156e-05/0.2829, allocations: 51.98 kB / 0.5627 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.19e-05/0.283, allocations: 91.62 kB / 0.5628 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001491/0.2832, allocations: 167.1 kB / 0.563 GB, free: 496 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000454/0.2836, allocations: 420.2 kB / 0.5634 GB, free: 76 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2836, allocations: 0 / 0.5634 GB, free: 76 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2836, allocations: 0 / 0.5634 GB, free: 76 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2836, allocations: 4 kB / 0.5634 GB, free: 72 kB / 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.001085/0.2847, allocations: 0.669 MB / 0.564 GB, free: 15.35 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.2848, allocations: 12.03 kB / 0.564 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001096/0.2849, allocations: 79.27 kB / 0.5641 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004198/0.2853, allocations: 84.66 kB / 0.5642 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005188/0.2858, allocations: 372 kB / 0.5645 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/0.2858, allocations: 25.03 kB / 0.5646 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.351e-05/0.2859, allocations: 32.38 kB / 0.5646 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005087/0.2864, allocations: 290 kB / 0.5649 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.2864, allocations: 11.92 kB / 0.5649 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.86e-05/0.2865, allocations: 8 kB / 0.5649 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.2865, allocations: 8 kB / 0.5649 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004344/0.2869, allocations: 198.5 kB / 0.5651 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.2882, allocations: 0.8584 MB / 0.5659 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004073/0.2886, allocations: 198.8 kB / 0.5661 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002046/0.2889, allocations: 88.81 kB / 0.5662 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.2889, allocations: 0 / 0.5662 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000402/0.2893, allocations: 227.2 kB / 0.5664 GB, free: 12.76 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.463e-06/0.2893, allocations: 0 / 0.5664 GB, free: 12.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007947/0.2901, allocations: 373.8 kB / 0.5668 GB, free: 12.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.2901, allocations: 63.41 kB / 0.5668 GB, free: 12.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002733/0.2904, allocations: 267 kB / 0.5671 GB, free: 12.05 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.362e-05/0.2904, allocations: 33.7 kB / 0.5671 GB, free: 12.01 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.2906, allocations: 200.9 kB / 0.5673 GB, free: 11.81 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.76e-05/0.2907, allocations: 99.22 kB / 0.5674 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.2908, allocations: 70.06 kB / 0.5675 GB, free: 11.63 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.2909, allocations: 342.8 kB / 0.5678 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/0.2911, allocations: 92.69 kB / 0.5679 GB, free: 11.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003268/0.2914, allocations: 247 kB / 0.5681 GB, free: 10.9 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005197/0.292, allocations: 340.8 kB / 0.5684 GB, free: 10.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.292, allocations: 0 / 0.5684 GB, free: 10.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006539/0.2926, allocations: 372.9 kB / 0.5688 GB, free: 10.13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.855e-05/0.2926, allocations: 11.98 kB / 0.5688 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.2926, allocations: 4 kB / 0.5688 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.2927, allocations: 8 kB / 0.5688 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002809/0.293, allocations: 76.31 kB / 0.5689 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.293, allocations: 11.92 kB / 0.5689 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001749/0.2931, allocations: 35.78 kB / 0.5689 GB, free: 9.988 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.025e-05/0.2932, allocations: 27.92 kB / 0.569 GB, free: 9.961 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,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.0001664/0.2933, allocations: 157.7 kB / 0.5691 GB, free: 9.797 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.602e-05/0.2934, allocations: 31.95 kB / 0.5692 GB, free: 9.766 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006494/0.294, allocations: 333.1 kB / 0.5695 GB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.294, allocations: 4 kB / 0.5695 GB, free: 9.422 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.2941, allocations: 0 / 0.5695 GB, free: 9.422 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.2941, allocations: 3.984 kB / 0.5695 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009758/0.295, allocations: 0.7324 MB / 0.5702 GB, free: 8.629 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.295, allocations: 0 / 0.5702 GB, free: 8.629 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002414/0.2953, allocations: 51.91 kB / 0.5702 GB, free: 8.578 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2953, allocations: 0 / 0.5702 GB, free: 8.578 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.773e-05/0.2953, allocations: 11.98 kB / 0.5703 GB, free: 8.566 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.2953, allocations: 3.938 kB / 0.5703 GB, free: 8.562 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.2953, allocations: 4 kB / 0.5703 GB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008543/0.2962, allocations: 0.5266 MB / 0.5708 GB, free: 8.016 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.71e-05/0.2962, allocations: 116.8 kB / 0.5709 GB, free: 7.883 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.405e-05/0.2963, allocations: 8 kB / 0.5709 GB, free: 7.875 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.2965, allocations: 15.92 kB / 0.5709 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.063e-05/0.2965, allocations: 23.97 kB / 0.5709 GB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.493e-05/0.2965, allocations: 15.98 kB / 0.5709 GB, free: 7.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001821/0.2967, allocations: 186 kB / 0.5711 GB, free: 7.637 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2967, allocations: 0 / 0.5711 GB, free: 7.637 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003519/0.2971, allocations: 71.89 kB / 0.5712 GB, free: 7.566 MB / 414.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.001178/0.2983, allocations: 1.072 MB / 0.5722 GB, free: 6.469 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005316/0.2988, allocations: 255.7 kB / 0.5725 GB, free: 6.219 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2988, allocations: 0 / 0.5725 GB, free: 6.219 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002419/0.299, allocations: 129.2 kB / 0.5726 GB, free: 6.094 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.2994, allocations: 47.23 kB / 0.5727 GB, free: 6.047 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003958/0.3033, allocations: 3.254 MB / 0.5758 GB, free: 2.598 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003936/0.3037, allocations: 0.7961 MB / 0.5766 GB, free: 1.773 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.3039, allocations: 42.95 kB / 0.5767 GB, free: 1.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001841/0.3041, allocations: 131.4 kB / 0.5768 GB, free: 1.602 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3041, allocations: 4 kB / 0.5768 GB, free: 1.598 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02862/0.3327, allocations: 6.031 MB / 0.5827 GB, free: 11.63 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.372/7.705, allocations: 11.08 kB / 0.5827 GB, free: 11.63 MB / 430.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219736 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: 10.292161766992649]