Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001073/0.001073, allocations: 196.7 kB / 14.16 MB, free: 1.156 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008188/0.0008189, allocations: 97.5 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1817/0.1817, allocations: 45.14 MB / 389.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.872e-05/2.875e-05, allocations: 7.984 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1015, allocations: 63.25 MB / 0.5115 GB, free: 6.688 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3641/0.4657, allocations: 89.33 MB / 0.5987 GB, free: 4.473 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.466, allocations: 65.34 kB / 0.5988 GB, free: 4.441 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01326/0.4793, allocations: 4.668 MB / 0.6033 GB, free: 0.4961 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.4793, allocations: 0 / 0.6033 GB, free: 0.4961 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.621e-05/0.4793, allocations: 8 kB / 0.6033 GB, free: 500 kB / 394.7 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.0008099/0.4801, allocations: 0.5636 MB / 0.6039 GB, free: 15.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.4802, allocations: 11.97 kB / 0.6039 GB, free: 15.89 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001066/0.4803, allocations: 77.75 kB / 0.604 GB, free: 15.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004107/0.4807, allocations: 91.44 kB / 0.604 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004298/0.4811, allocations: 331.2 kB / 0.6044 GB, free: 15.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.4812, allocations: 23.91 kB / 0.6044 GB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.7e-05/0.4813, allocations: 34.44 kB / 0.6044 GB, free: 15.37 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004457/0.4817, allocations: 269.4 kB / 0.6047 GB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.4817, allocations: 0 / 0.6047 GB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.959e-05/0.4818, allocations: 11.31 kB / 0.6047 GB, free: 15.17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.4818, allocations: 12 kB / 0.6047 GB, free: 15.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003033/0.4821, allocations: 174 kB / 0.6049 GB, free: 15.05 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001327/0.4834, allocations: 0.8858 MB / 0.6057 GB, free: 14.28 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003091/0.4837, allocations: 195.1 kB / 0.6059 GB, free: 14.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.4839, allocations: 84.59 kB / 0.606 GB, free: 14.08 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.4839, allocations: 8.375 kB / 0.606 GB, free: 14.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000332/0.4843, allocations: 215.4 kB / 0.6062 GB, free: 13.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 2.174e-06/0.4843, allocations: 0 / 0.6062 GB, free: 13.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004785/0.4848, allocations: 259.3 kB / 0.6064 GB, free: 13.69 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.89e-05/0.4848, allocations: 62.73 kB / 0.6065 GB, free: 13.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002078/0.485, allocations: 218.9 kB / 0.6067 GB, free: 13.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.4851, allocations: 36.39 kB / 0.6068 GB, free: 13.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.4852, allocations: 199.4 kB / 0.6069 GB, free: 13.24 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.925e-05/0.4853, allocations: 92.91 kB / 0.607 GB, free: 13.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.407e-05/0.4853, allocations: 7.688 kB / 0.607 GB, free: 13.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.4854, allocations: 345 kB / 0.6074 GB, free: 12.83 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.4856, allocations: 72.31 kB / 0.6074 GB, free: 12.78 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002229/0.4858, allocations: 211.9 kB / 0.6076 GB, free: 12.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/0.486, allocations: 108.4 kB / 0.6077 GB, free: 12.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.486, allocations: 4 kB / 0.6077 GB, free: 12.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005026/0.4865, allocations: 342.3 kB / 0.6081 GB, free: 12.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.4865, allocations: 8 kB / 0.6081 GB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.4866, allocations: 4 kB / 0.6081 GB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.992e-05/0.4866, allocations: 8.469 kB / 0.6081 GB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002943/0.4869, allocations: 83.39 kB / 0.6082 GB, free: 12.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.534e-05/0.4869, allocations: 11.95 kB / 0.6082 GB, free: 12.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.4871, allocations: 42.05 kB / 0.6082 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.4871, allocations: 15.56 kB / 0.6082 GB, free: 12.04 MB / 410.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_last,mean.y_last,$PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last) * Number of discrete 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.0001093/0.4872, allocations: 127.1 kB / 0.6084 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.257e-05/0.4873, allocations: 39.56 kB / 0.6084 GB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004918/0.4878, allocations: 296.3 kB / 0.6087 GB, free: 11.67 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.4878, allocations: 4 kB / 0.6087 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4878, allocations: 0 / 0.6087 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.4878, allocations: 3.953 kB / 0.6087 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000764/0.4886, allocations: 0.7043 MB / 0.6094 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.4886, allocations: 4 kB / 0.6094 GB, free: 11.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002502/0.4889, allocations: 55.89 kB / 0.6094 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.165e-06/0.4889, allocations: 0 / 0.6094 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.64e-05/0.4889, allocations: 11.44 kB / 0.6094 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.4889, allocations: 3.953 kB / 0.6094 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4889, allocations: 0 / 0.6094 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006075/0.4895, allocations: 495 kB / 0.6099 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.642e-05/0.4896, allocations: 111.4 kB / 0.61 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.361e-05/0.4897, allocations: 9.062 kB / 0.61 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001861/0.4899, allocations: 15.3 kB / 0.61 GB, free: 10.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.4899, allocations: 27.5 kB / 0.6101 GB, free: 10.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.49, allocations: 15.92 kB / 0.6101 GB, free: 10.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001471/0.4901, allocations: 175.5 kB / 0.6103 GB, free: 10.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4901, allocations: 0 / 0.6103 GB, free: 10.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003316/0.4905, allocations: 86.73 kB / 0.6103 GB, free: 10.18 MB / 410.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_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) * 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.000883/0.4914, allocations: 1.054 MB / 0.6114 GB, free: 9.223 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003626/0.4917, allocations: 231.9 kB / 0.6116 GB, free: 9.055 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4918, allocations: 0 / 0.6116 GB, free: 9.055 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.4919, allocations: 121.8 kB / 0.6117 GB, free: 8.965 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002424/0.4922, allocations: 35.47 kB / 0.6117 GB, free: 8.941 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000996/0.4932, allocations: 0.5716 MB / 0.6123 GB, free: 8.402 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.4935, allocations: 0.8065 MB / 0.6131 GB, free: 7.566 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001383/0.4936, allocations: 34.97 kB / 0.6131 GB, free: 7.535 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/0.4938, allocations: 130.8 kB / 0.6132 GB, free: 7.492 MB / 410.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4938, allocations: 0 / 0.6132 GB, free: 7.492 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01608/0.5099, allocations: 5.298 MB / 0.6184 GB, free: 2.297 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001981/0.5101, allocations: 140.4 kB / 0.6186 GB, free: 2.066 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.796/2.306, allocations: 0 / 0.6186 GB, free: 2.066 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat