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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00136/0.00136, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001275, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2445/0.2445, allocations: 46.12 MB / 344.4 MB, free: 11.43 MB / 286.1 MB 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.002295/0.002295, allocations: 83.84 kB / 480.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4236/0.4259, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.005538/0.4315, allocations: 2.321 MB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00289/0.4344, allocations: 0.9039 MB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002271/0.4347, allocations: 8.094 kB / 0.5338 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002204/0.435, allocations: 35.55 kB / 0.5338 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003646/0.4353, allocations: 65.86 kB / 0.5338 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007091/0.4361, allocations: 185.4 kB / 0.534 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006481/0.4367, allocations: 389.4 kB / 0.5344 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003671/0.4371, allocations: 135.1 kB / 0.5345 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003595/0.4375, allocations: 147.7 kB / 0.5347 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004053/0.4379, allocations: 165.6 kB / 0.5348 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.381e-05/0.438, allocations: 35.75 kB / 0.5349 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001513/0.4382, allocations: 52 kB / 0.5349 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.4383, allocations: 89.48 kB / 0.535 GB, free: 9.945 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002726/0.4386, allocations: 173.5 kB / 0.5352 GB, free: 9.812 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007067/0.4393, allocations: 415.3 kB / 0.5356 GB, free: 9.508 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.4394, allocations: 0.9062 kB / 0.5356 GB, free: 9.508 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.4394, allocations: 0 / 0.5356 GB, free: 9.508 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.4394, allocations: 0 / 0.5356 GB, free: 9.508 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.001726/0.4411, allocations: 0.6731 MB / 0.5362 GB, free: 8.902 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.941e-05/0.4412, allocations: 10.19 kB / 0.5362 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001709/0.4414, allocations: 78.08 kB / 0.5363 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007454/0.4421, allocations: 77.69 kB / 0.5364 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008441/0.443, allocations: 374 kB / 0.5367 GB, free: 8.457 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.045e-05/0.4431, allocations: 26.78 kB / 0.5368 GB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.633e-05/0.4432, allocations: 35.23 kB / 0.5368 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008714/0.444, allocations: 289.5 kB / 0.5371 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.4441, allocations: 1.219 kB / 0.5371 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.518e-05/0.4441, allocations: 10.75 kB / 0.5371 GB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.122e-05/0.4442, allocations: 7.656 kB / 0.5371 GB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006897/0.4449, allocations: 209.7 kB / 0.5373 GB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002242/0.4471, allocations: 0.8623 MB / 0.5381 GB, free: 7.453 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000676/0.4478, allocations: 202.4 kB / 0.5383 GB, free: 7.344 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003719/0.4482, allocations: 98.66 kB / 0.5384 GB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.972e-05/0.4483, allocations: 10.3 kB / 0.5384 GB, free: 7.285 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007692/0.4491, allocations: 220.3 kB / 0.5386 GB, free: 7.141 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.955e-06/0.4491, allocations: 4 kB / 0.5386 GB, free: 7.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001425/0.4505, allocations: 374.6 kB / 0.539 GB, free: 6.953 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.7e-05/0.4506, allocations: 60.05 kB / 0.5391 GB, free: 6.887 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004547/0.4511, allocations: 269.2 kB / 0.5393 GB, free: 6.699 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.648e-05/0.4512, allocations: 35.92 kB / 0.5393 GB, free: 6.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.4514, allocations: 192.3 kB / 0.5395 GB, free: 6.484 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.4516, allocations: 103.2 kB / 0.5396 GB, free: 6.395 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.4517, allocations: 70.53 kB / 0.5397 GB, free: 6.344 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000244/0.452, allocations: 348.9 kB / 0.54 GB, free: 6 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003709/0.4524, allocations: 93.08 kB / 0.5401 GB, free: 5.957 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005562/0.453, allocations: 230.9 kB / 0.5403 GB, free: 5.734 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009997/0.454, allocations: 356.7 kB / 0.5407 GB, free: 5.441 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.454, allocations: 2.156 kB / 0.5407 GB, free: 5.441 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001281/0.4553, allocations: 374.1 kB / 0.541 GB, free: 5.246 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.173e-05/0.4554, allocations: 9.656 kB / 0.541 GB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.4554, allocations: 4.062 kB / 0.541 GB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.108e-05/0.4554, allocations: 6.781 kB / 0.5411 GB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005507/0.456, allocations: 75.14 kB / 0.5411 GB, free: 5.227 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.367e-05/0.456, allocations: 10.59 kB / 0.5411 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003509/0.4564, allocations: 35.7 kB / 0.5412 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.451e-05/0.4565, allocations: 21.97 kB / 0.5412 GB, free: 5.191 MB / 398.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.0003428/0.4568, allocations: 176.1 kB / 0.5414 GB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.357e-05/0.4569, allocations: 29.59 kB / 0.5414 GB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001105/0.458, allocations: 321.6 kB / 0.5417 GB, free: 4.828 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-06/0.4581, allocations: 4.344 kB / 0.5417 GB, free: 4.828 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.4581, allocations: 0 / 0.5417 GB, free: 4.828 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.4581, allocations: 4 kB / 0.5417 GB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00182/0.4599, allocations: 0.7318 MB / 0.5424 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.4599, allocations: 0 / 0.5424 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004748/0.4604, allocations: 47.34 kB / 0.5425 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-06/0.4605, allocations: 2.156 kB / 0.5425 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.071e-05/0.4605, allocations: 11.17 kB / 0.5425 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.989e-06/0.4605, allocations: 13 kB / 0.5425 GB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.4606, allocations: 5.031 kB / 0.5425 GB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001597/0.4622, allocations: 0.5201 MB / 0.543 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.4623, allocations: 112.2 kB / 0.5431 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.688e-05/0.4624, allocations: 11.41 kB / 0.5431 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002776/0.4627, allocations: 22.17 kB / 0.5431 GB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.4628, allocations: 22.19 kB / 0.5432 GB, free: 3.742 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.146e-05/0.4629, allocations: 17 kB / 0.5432 GB, free: 3.734 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004316/0.4633, allocations: 185.1 kB / 0.5433 GB, free: 3.605 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4633, allocations: 3.938 kB / 0.5434 GB, free: 3.602 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000666/0.464, allocations: 71.53 kB / 0.5434 GB, free: 3.582 MB / 398.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.00201/0.466, allocations: 1.085 MB / 0.5445 GB, free: 2.711 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009943/0.467, allocations: 256.6 kB / 0.5447 GB, free: 2.609 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.676e-06/0.4671, allocations: 0 / 0.5447 GB, free: 2.609 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004386/0.4675, allocations: 136 kB / 0.5449 GB, free: 2.551 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006285/0.4682, allocations: 47.64 kB / 0.5449 GB, free: 2.516 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007302/0.4755, allocations: 3.249 MB / 0.5481 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006566/0.4762, allocations: 0.7958 MB / 0.5489 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002834/0.4765, allocations: 47.22 kB / 0.5489 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002994/0.4768, allocations: 123.4 kB / 0.549 GB, free: 14.16 MB / 414.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4768, allocations: 0 / 0.549 GB, free: 14.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03599/0.5128, allocations: 6.011 MB / 0.5549 GB, free: 8.211 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.522/9.035, allocations: 3.938 kB / 0.5549 GB, free: 8.207 MB / 414.1 MB (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.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe 2>&1)