Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 180.4 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 223.2 MB / 241 MB, free: 10.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009037/0.000904, allocations: 90.27 kB / 292.1 MB, free: 10.74 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3574/0.3574, allocations: 44.21 MB / 387.5 MB, free: 38.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003181, allocations: 11.98 kB / 460 MB, free: 1.48 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.358, allocations: 61.9 MB / 0.5096 GB, free: 37.83 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1124/0.4705, allocations: 88.33 MB / 0.5959 GB, free: 6.832 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.4708, allocations: 59.95 kB / 0.596 GB, free: 6.777 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01261/0.4834, allocations: 4.451 MB / 0.6003 GB, free: 2.309 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4835, allocations: 0 / 0.6003 GB, free: 2.309 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.849e-05/0.4835, allocations: 4 kB / 0.6003 GB, free: 2.305 MB / 410.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.0009259/0.4844, allocations: 0.58 MB / 0.6009 GB, free: 1.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.4845, allocations: 12.03 kB / 0.6009 GB, free: 1.668 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001086/0.4846, allocations: 71.08 kB / 0.6009 GB, free: 1.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.597e-05/0.4847, allocations: 47.52 kB / 0.601 GB, free: 1.543 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004212/0.4851, allocations: 314.1 kB / 0.6013 GB, free: 1.199 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.877e-05/0.4851, allocations: 36.61 kB / 0.6013 GB, free: 1.164 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.05e-05/0.4852, allocations: 31.98 kB / 0.6014 GB, free: 1.133 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000498/0.4857, allocations: 290 kB / 0.6016 GB, free: 0.8398 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.4857, allocations: 3.906 kB / 0.6016 GB, free: 0.8359 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.4858, allocations: 19.98 kB / 0.6017 GB, free: 0.8164 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.4858, allocations: 8 kB / 0.6017 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004069/0.4862, allocations: 210.5 kB / 0.6019 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/0.4875, allocations: 0.8582 MB / 0.6027 GB, free: 15.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000379/0.4879, allocations: 210.9 kB / 0.6029 GB, free: 15.48 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.4879, allocations: 7.938 kB / 0.6029 GB, free: 15.47 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000392/0.4883, allocations: 234 kB / 0.6031 GB, free: 15.23 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 1.774e-06/0.4883, allocations: 0 / 0.6031 GB, free: 15.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007723/0.4891, allocations: 393.2 kB / 0.6035 GB, free: 14.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.4891, allocations: 59.34 kB / 0.6036 GB, free: 14.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.4893, allocations: 212.1 kB / 0.6038 GB, free: 14.56 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.539e-05/0.4894, allocations: 37.7 kB / 0.6038 GB, free: 14.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.758e-05/0.4895, allocations: 184.6 kB / 0.604 GB, free: 14.33 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.253e-05/0.4896, allocations: 98.55 kB / 0.6041 GB, free: 14.23 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.793e-05/0.4896, allocations: 12 kB / 0.6041 GB, free: 14.22 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.4897, allocations: 334.8 kB / 0.6044 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.4899, allocations: 88.7 kB / 0.6045 GB, free: 13.79 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002561/0.4902, allocations: 235.9 kB / 0.6047 GB, free: 13.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002264/0.4904, allocations: 119.9 kB / 0.6048 GB, free: 13.39 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.4904, allocations: 4 kB / 0.6048 GB, free: 13.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005837/0.491, allocations: 385.2 kB / 0.6052 GB, free: 13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.491, allocations: 4 kB / 0.6052 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.491, allocations: 8 kB / 0.6052 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.4911, allocations: 7.984 kB / 0.6052 GB, free: 12.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004136/0.4915, allocations: 79.91 kB / 0.6053 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.4915, allocations: 15.86 kB / 0.6053 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001822/0.4917, allocations: 43.69 kB / 0.6054 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.4917, allocations: 19.98 kB / 0.6054 GB, free: 12.82 MB / 426.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 () * 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.0001558/0.4919, allocations: 170.9 kB / 0.6055 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.709e-05/0.4919, allocations: 27.66 kB / 0.6056 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006032/0.4925, allocations: 348.1 kB / 0.6059 GB, free: 12.28 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.4926, allocations: 0 / 0.6059 GB, free: 12.28 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.4926, allocations: 4 kB / 0.6059 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.4926, allocations: 0 / 0.6059 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008629/0.4935, allocations: 0.7362 MB / 0.6066 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4935, allocations: 0 / 0.6066 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002454/0.4937, allocations: 51.97 kB / 0.6067 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.135e-06/0.4937, allocations: 4 kB / 0.6067 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.79e-05/0.4938, allocations: 11.98 kB / 0.6067 GB, free: 11.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.4938, allocations: 4 kB / 0.6067 GB, free: 11.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4938, allocations: 0 / 0.6067 GB, free: 11.41 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007803/0.4946, allocations: 0.55 MB / 0.6072 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.426e-05/0.4946, allocations: 100.8 kB / 0.6073 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.076e-05/0.4947, allocations: 4.062 kB / 0.6073 GB, free: 10.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.4949, allocations: 19.98 kB / 0.6073 GB, free: 10.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.276e-05/0.4949, allocations: 27.95 kB / 0.6074 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.495, allocations: 12 kB / 0.6074 GB, free: 10.66 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000129/0.4951, allocations: 164.5 kB / 0.6075 GB, free: 10.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4951, allocations: 0 / 0.6075 GB, free: 10.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003457/0.4954, allocations: 83.67 kB / 0.6076 GB, free: 10.42 MB / 426.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) * 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.001028/0.4965, allocations: 1.094 MB / 0.6087 GB, free: 9.301 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004768/0.497, allocations: 272.4 kB / 0.6089 GB, free: 9.035 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.497, allocations: 8.234 kB / 0.609 GB, free: 9.027 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002356/0.4972, allocations: 144.2 kB / 0.6091 GB, free: 8.887 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002329/0.4975, allocations: 18.55 kB / 0.6091 GB, free: 8.871 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/0.4997, allocations: 3.978 MB / 0.613 GB, free: 4.762 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.5, allocations: 0.8 MB / 0.6138 GB, free: 3.93 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001399/0.5002, allocations: 38.27 kB / 0.6138 GB, free: 3.891 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.5003, allocations: 119.4 kB / 0.6139 GB, free: 3.773 MB / 426.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5003, allocations: 192 / 0.6139 GB, free: 3.773 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0165/0.5168, allocations: 4.825 MB / 0.6186 GB, free: 15.06 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001916/0.5171, allocations: 159.3 kB / 0.6188 GB, free: 14.82 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.823/2.34, allocations: 0 / 0.6188 GB, free: 14.82 MB / 442.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat