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.001259/0.001259, allocations: 121.6 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 199.9 kB / 18.73 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.474/1.474, allocations: 227.4 MB / 247 MB, free: 10.41 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.2475/0.2475, 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.002265/0.002265, allocations: 79.88 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3724/0.3747, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003922/0.3787, allocations: 2.321 MB / 0.5329 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001838/0.3806, allocations: 0.9111 MB / 0.5337 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.3808, allocations: 8.062 kB / 0.5338 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001627/0.3809, allocations: 35.53 kB / 0.5338 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.3812, allocations: 70.19 kB / 0.5339 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00046/0.3817, allocations: 177.9 kB / 0.534 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000499/0.3822, allocations: 394 kB / 0.5344 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002621/0.3825, allocations: 124.9 kB / 0.5345 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002718/0.3828, allocations: 152.6 kB / 0.5347 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002576/0.383, allocations: 165.9 kB / 0.5348 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.177e-05/0.3831, allocations: 36 kB / 0.5349 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.3832, allocations: 51.39 kB / 0.5349 GB, free: 10 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.922e-05/0.3833, allocations: 89.3 kB / 0.535 GB, free: 9.926 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001979/0.3835, allocations: 181 kB / 0.5352 GB, free: 9.785 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005317/0.3841, allocations: 416.9 kB / 0.5356 GB, free: 9.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.3841, allocations: 0 / 0.5356 GB, free: 9.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3841, allocations: 0 / 0.5356 GB, free: 9.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.3841, allocations: 1.344 kB / 0.5356 GB, free: 9.48 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.001243/0.3854, allocations: 0.6653 MB / 0.5362 GB, free: 8.883 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.3854, allocations: 9.625 kB / 0.5362 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001559/0.3856, allocations: 82.27 kB / 0.5363 GB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004591/0.386, allocations: 77.16 kB / 0.5364 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005959/0.3866, allocations: 378 kB / 0.5367 GB, free: 8.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.491e-05/0.3867, allocations: 22.06 kB / 0.5368 GB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.033e-05/0.3868, allocations: 36.06 kB / 0.5368 GB, free: 8.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005833/0.3873, allocations: 289.6 kB / 0.5371 GB, free: 8.234 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.3874, allocations: 1.156 kB / 0.5371 GB, free: 8.234 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.167e-05/0.3874, allocations: 10.75 kB / 0.5371 GB, free: 8.227 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.3874, allocations: 6.781 kB / 0.5371 GB, free: 8.227 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004824/0.3879, allocations: 206.2 kB / 0.5373 GB, free: 8.129 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.3894, allocations: 0.8585 MB / 0.5381 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004721/0.3899, allocations: 206.1 kB / 0.5383 GB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002213/0.3902, allocations: 98.56 kB / 0.5384 GB, free: 7.273 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.201e-05/0.3902, allocations: 11.45 kB / 0.5384 GB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004484/0.3907, allocations: 227.8 kB / 0.5386 GB, free: 7.113 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.804e-06/0.3907, allocations: 0 / 0.5386 GB, free: 7.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008973/0.3916, allocations: 373.9 kB / 0.539 GB, free: 6.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.3917, allocations: 61.09 kB / 0.5391 GB, free: 6.863 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003191/0.392, allocations: 272 kB / 0.5393 GB, free: 6.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.426e-05/0.392, allocations: 36.77 kB / 0.5393 GB, free: 6.633 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.3922, allocations: 195.2 kB / 0.5395 GB, free: 6.453 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.682e-05/0.3923, allocations: 95.19 kB / 0.5396 GB, free: 6.371 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.3925, allocations: 77.97 kB / 0.5397 GB, free: 6.312 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.3926, allocations: 346.4 kB / 0.54 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002146/0.3929, allocations: 93.3 kB / 0.5401 GB, free: 5.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003284/0.3932, allocations: 231.2 kB / 0.5403 GB, free: 5.707 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005895/0.3938, allocations: 347.9 kB / 0.5407 GB, free: 5.422 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.3938, allocations: 1.531 kB / 0.5407 GB, free: 5.422 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007386/0.3946, allocations: 374.6 kB / 0.541 GB, free: 5.227 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.3946, allocations: 11.09 kB / 0.541 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.3946, allocations: 4.344 kB / 0.541 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.3946, allocations: 7.562 kB / 0.5411 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.3949, allocations: 70.58 kB / 0.5411 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.424e-05/0.395, allocations: 10.09 kB / 0.5411 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.3952, allocations: 40.23 kB / 0.5412 GB, free: 5.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.424e-05/0.3952, allocations: 22.06 kB / 0.5412 GB, free: 5.168 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.0002102/0.3954, allocations: 171.8 kB / 0.5414 GB, free: 5.012 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.56e-05/0.3955, allocations: 30.44 kB / 0.5414 GB, free: 4.996 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007282/0.3962, allocations: 316.3 kB / 0.5417 GB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.3962, allocations: 4.453 kB / 0.5417 GB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3963, allocations: 0 / 0.5417 GB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.3963, allocations: 11.97 kB / 0.5417 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.3975, allocations: 0.7353 MB / 0.5424 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3975, allocations: 1.219 kB / 0.5424 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002716/0.3977, allocations: 43.97 kB / 0.5425 GB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.642e-06/0.3978, allocations: 5 kB / 0.5425 GB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.132e-05/0.3978, allocations: 15.17 kB / 0.5425 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.3978, allocations: 5.031 kB / 0.5425 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3978, allocations: 1.062 kB / 0.5425 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.3988, allocations: 0.5231 MB / 0.543 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/0.399, allocations: 110.1 kB / 0.5431 GB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.255e-05/0.399, allocations: 10.56 kB / 0.5431 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.3992, allocations: 18.36 kB / 0.5431 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.004e-05/0.3993, allocations: 30.02 kB / 0.5432 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.814e-05/0.3993, allocations: 12.66 kB / 0.5432 GB, free: 3.715 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002107/0.3995, allocations: 188.8 kB / 0.5433 GB, free: 3.582 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3995, allocations: 1.312 kB / 0.5433 GB, free: 3.582 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004214/0.4, allocations: 70.39 kB / 0.5434 GB, free: 3.562 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.001368/0.4013, allocations: 1.086 MB / 0.5445 GB, free: 2.691 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000644/0.402, allocations: 260.6 kB / 0.5447 GB, free: 2.586 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.402, allocations: 1.156 kB / 0.5447 GB, free: 2.586 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002831/0.4023, allocations: 131.1 kB / 0.5449 GB, free: 2.531 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003864/0.4027, allocations: 43.34 kB / 0.5449 GB, free: 2.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004523/0.4072, allocations: 3.254 MB / 0.5481 GB, free: 15.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004883/0.4077, allocations: 0.7997 MB / 0.5489 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001641/0.4079, allocations: 47.22 kB / 0.5489 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001992/0.4081, allocations: 123.6 kB / 0.549 GB, free: 14.11 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4081, allocations: 3.938 kB / 0.549 GB, free: 14.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03027/0.4384, allocations: 5.997 MB / 0.5549 GB, free: 8.168 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.628/9.067, allocations: 9.5 kB / 0.5549 GB, free: 8.16 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 & /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 --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)