Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.009668/0.009668, allocations: 174.8 kB / 15.12 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.229/2.229, allocations: 194.5 MB / 210.3 MB, free: 7.613 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002028/0.002028, allocations: 132.5 kB / 255.6 MB, free: 10.23 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2576/0.2576, allocations: 40.01 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004865/0.0004864, allocations: 14.06 kB / 406.3 MB, free: 51.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1039, allocations: 54.88 MB / 461.1 MB, free: 3.211 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1722/0.2761, allocations: 82.32 MB / 0.5307 GB, free: 0.7773 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003625/0.2766, allocations: 63.97 kB / 0.5308 GB, free: 0.7148 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3187/0.5953, allocations: 4.138 MB / 0.5348 GB, free: 82.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5954, allocations: 0 / 0.5348 GB, free: 82.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.443e-05/0.5954, allocations: 8.781 kB / 0.5348 GB, free: 82.71 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001314/0.5968, allocations: 0.5592 MB / 0.5354 GB, free: 82.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.5968, allocations: 14.84 kB / 0.5354 GB, free: 82.26 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001598/0.597, allocations: 74.16 kB / 0.5355 GB, free: 82.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.5971, allocations: 35.03 kB / 0.5355 GB, free: 82.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005804/0.5977, allocations: 313 kB / 0.5358 GB, free: 81.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.629e-05/0.5978, allocations: 21.86 kB / 0.5358 GB, free: 81.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.467e-05/0.5979, allocations: 36.09 kB / 0.5358 GB, free: 81.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008499/0.5987, allocations: 280.3 kB / 0.5361 GB, free: 81.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.5988, allocations: 0.9062 kB / 0.5361 GB, free: 81.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.215e-05/0.5988, allocations: 11.31 kB / 0.5361 GB, free: 81.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.5989, allocations: 6.531 kB / 0.5361 GB, free: 81.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007627/0.5996, allocations: 207.1 kB / 0.5363 GB, free: 81.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002164/0.6018, allocations: 0.8181 MB / 0.5371 GB, free: 81.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006832/0.6025, allocations: 204.3 kB / 0.5373 GB, free: 81.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.896e-05/0.6026, allocations: 4.812 kB / 0.5373 GB, free: 81.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007236/0.6034, allocations: 241.7 kB / 0.5376 GB, free: 81.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 3.406e-06/0.6034, allocations: 0 / 0.5376 GB, free: 81.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.001385/0.6048, allocations: 389.4 kB / 0.5379 GB, free: 81.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.6048, allocations: 59.53 kB / 0.538 GB, free: 81.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003148/0.6052, allocations: 209.1 kB / 0.5382 GB, free: 81.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.178e-05/0.6052, allocations: 36.11 kB / 0.5382 GB, free: 81.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.6054, allocations: 167.8 kB / 0.5384 GB, free: 81.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.6055, allocations: 98.52 kB / 0.5385 GB, free: 81.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.943e-05/0.6055, allocations: 6.219 kB / 0.5385 GB, free: 81.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.155e-05/0.6056, allocations: 339.2 kB / 0.5388 GB, free: 80.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003661/0.606, allocations: 99.66 kB / 0.5389 GB, free: 80.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004451/0.6065, allocations: 221.6 kB / 0.5391 GB, free: 80.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004983/0.607, allocations: 128.1 kB / 0.5392 GB, free: 80.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.607, allocations: 1.969 kB / 0.5392 GB, free: 80.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001197/0.6082, allocations: 385.6 kB / 0.5396 GB, free: 80.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.6083, allocations: 6.906 kB / 0.5396 GB, free: 80.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.6083, allocations: 5.5 kB / 0.5396 GB, free: 80.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.089e-05/0.6083, allocations: 11.56 kB / 0.5396 GB, free: 80.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000558/0.6089, allocations: 78.55 kB / 0.5397 GB, free: 80.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.078e-05/0.6089, allocations: 11.97 kB / 0.5397 GB, free: 80.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003213/0.6093, allocations: 40.48 kB / 0.5398 GB, free: 80.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.086e-05/0.6093, allocations: 17.56 kB / 0.5398 GB, free: 80.43 MB / 378.7 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,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002985/0.6096, allocations: 159 kB / 0.5399 GB, free: 80.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.978e-05/0.6097, allocations: 29.89 kB / 0.5399 GB, free: 80.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001154/0.6109, allocations: 337.5 kB / 0.5403 GB, free: 80.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.839e-06/0.6109, allocations: 10.7 kB / 0.5403 GB, free: 80.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.6109, allocations: 4.594 kB / 0.5403 GB, free: 80.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.6109, allocations: 3.25 kB / 0.5403 GB, free: 80.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00165/0.6126, allocations: 0.7267 MB / 0.541 GB, free: 79.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.6126, allocations: 0 / 0.541 GB, free: 79.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004964/0.6131, allocations: 49.94 kB / 0.541 GB, free: 79.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.628e-06/0.6132, allocations: 1.969 kB / 0.541 GB, free: 79.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.251e-05/0.6132, allocations: 14.86 kB / 0.5411 GB, free: 79.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.825e-06/0.6132, allocations: 4.953 kB / 0.5411 GB, free: 79.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.6133, allocations: 0.9688 kB / 0.5411 GB, free: 79.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/0.6147, allocations: 0.5416 MB / 0.5416 GB, free: 79.74 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.6149, allocations: 103.1 kB / 0.5417 GB, free: 79.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.154e-05/0.615, allocations: 15.28 kB / 0.5417 GB, free: 79.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003094/0.6153, allocations: 19.98 kB / 0.5417 GB, free: 79.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.6155, allocations: 23.39 kB / 0.5418 GB, free: 79.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.064e-05/0.6155, allocations: 14.36 kB / 0.5418 GB, free: 79.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002175/0.6157, allocations: 157.8 kB / 0.5419 GB, free: 79.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6158, allocations: 1.062 kB / 0.5419 GB, free: 79.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005949/0.6164, allocations: 71.97 kB / 0.542 GB, free: 79.53 MB / 378.7 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,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001701/0.6181, allocations: 1.105 MB / 0.5431 GB, free: 78.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009633/0.6191, allocations: 270.7 kB / 0.5433 GB, free: 78.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.533e-06/0.6191, allocations: 4 kB / 0.5433 GB, free: 78.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004221/0.6195, allocations: 141.2 kB / 0.5435 GB, free: 78.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003898/0.6199, allocations: 29.84 kB / 0.5435 GB, free: 78.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.6224, allocations: 3.929 MB / 0.5473 GB, free: 74.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003027/0.6227, allocations: 0.7878 MB / 0.5481 GB, free: 74.15 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003147/0.6231, allocations: 39.55 kB / 0.5481 GB, free: 74.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.6233, allocations: 114.8 kB / 0.5482 GB, free: 74.06 MB / 378.7 MB Notification: Performance of SimCode: time 1.273e-06/0.6233, allocations: 0 / 0.5482 GB, free: 74.06 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03101/0.6543, allocations: 4.713 MB / 0.5528 GB, free: 71.83 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002381/0.6546, allocations: 147.6 kB / 0.553 GB, free: 71.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.681/3.335, allocations: 4 kB / 0.553 GB, free: 71.59 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat