Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001452/0.001453, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.728/1.728, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008869/0.0008868, allocations: 83.89 kB / 261.7 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2194/0.2194, allocations: 43.49 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.03e-05/2.032e-05, allocations: 4 kB / 418.3 MB, free: 28.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1338, allocations: 58.86 MB / 477.2 MB, free: 1.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4561/0.5899, allocations: 86.55 MB / 0.5505 GB, free: 8.281 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.5902, allocations: 67.55 kB / 0.5506 GB, free: 8.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01133/0.6015, allocations: 4.243 MB / 0.5548 GB, free: 4.875 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.6016, allocations: 3.938 kB / 0.5548 GB, free: 4.871 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.742e-05/0.6016, allocations: 4 kB / 0.5548 GB, free: 4.867 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0007074/0.6023, allocations: 0.5378 MB / 0.5553 GB, free: 4.305 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.6024, allocations: 8.031 kB / 0.5553 GB, free: 4.297 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.164e-05/0.6025, allocations: 43.58 kB / 0.5553 GB, free: 4.254 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003662/0.6028, allocations: 314.8 kB / 0.5556 GB, free: 3.949 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.6029, allocations: 8 kB / 0.5556 GB, free: 3.941 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.483e-05/0.6029, allocations: 23.91 kB / 0.5557 GB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002442/0.6032, allocations: 146.8 kB / 0.5558 GB, free: 3.828 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003116/0.6035, allocations: 209.7 kB / 0.556 GB, free: 3.668 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.6035, allocations: 0 / 0.556 GB, free: 3.668 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.082e-05/0.6035, allocations: 7.938 kB / 0.556 GB, free: 3.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.6036, allocations: 8 kB / 0.556 GB, free: 3.652 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.6046, allocations: 0.7321 MB / 0.5567 GB, free: 3.027 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.6049, allocations: 166.7 kB / 0.5569 GB, free: 2.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.605, allocations: 81.03 kB / 0.557 GB, free: 2.855 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.684e-05/0.6051, allocations: 10.75 kB / 0.557 GB, free: 2.848 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000295/0.6054, allocations: 201.4 kB / 0.5572 GB, free: 2.684 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.493e-06/0.6054, allocations: 0 / 0.5572 GB, free: 2.684 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003995/0.6058, allocations: 244.2 kB / 0.5574 GB, free: 2.488 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.801e-05/0.6058, allocations: 62.97 kB / 0.5575 GB, free: 2.418 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001535/0.606, allocations: 190.5 kB / 0.5577 GB, free: 2.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.606, allocations: 29.69 kB / 0.5577 GB, free: 2.215 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.109e-05/0.6061, allocations: 163.2 kB / 0.5578 GB, free: 2.086 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.816e-05/0.6062, allocations: 95.56 kB / 0.5579 GB, free: 2.004 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.528e-05/0.6062, allocations: 0 / 0.5579 GB, free: 2.004 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.413e-05/0.6063, allocations: 348.1 kB / 0.5583 GB, free: 1.668 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.6064, allocations: 68.56 kB / 0.5583 GB, free: 1.625 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.6065, allocations: 196.5 kB / 0.5585 GB, free: 1.406 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001389/0.6067, allocations: 104.2 kB / 0.5586 GB, free: 1.332 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.6067, allocations: 0 / 0.5586 GB, free: 1.332 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003839/0.6071, allocations: 303.9 kB / 0.5589 GB, free: 1.086 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.6071, allocations: 8 kB / 0.5589 GB, free: 1.078 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.6071, allocations: 4 kB / 0.5589 GB, free: 1.074 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.206e-05/0.6072, allocations: 11.98 kB / 0.5589 GB, free: 1.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002914/0.6075, allocations: 75.09 kB / 0.559 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.6075, allocations: 11.98 kB / 0.559 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001563/0.6076, allocations: 27.69 kB / 0.559 GB, free: 0.9531 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.6077, allocations: 28.09 kB / 0.5591 GB, free: 0.9258 MB / 362.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 () * 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 8.586e-05/0.6078, allocations: 127.9 kB / 0.5592 GB, free: 0.7969 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002934/0.6081, allocations: 235.2 kB / 0.5594 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.04e-05/0.6081, allocations: 27.72 kB / 0.5594 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000383/0.6085, allocations: 274.1 kB / 0.5597 GB, free: 384 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.6085, allocations: 4 kB / 0.5597 GB, free: 380 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.6085, allocations: 3.938 kB / 0.5597 GB, free: 376 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.6085, allocations: 3.984 kB / 0.5597 GB, free: 372 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000675/0.6092, allocations: 0.6142 MB / 0.5603 GB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.6092, allocations: 0 / 0.5603 GB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002657/0.6095, allocations: 51.16 kB / 0.5604 GB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.6095, allocations: 4 kB / 0.5604 GB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.17e-05/0.6096, allocations: 18.55 kB / 0.5604 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.6096, allocations: 0 / 0.5604 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.6096, allocations: 0 / 0.5604 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007352/0.6103, allocations: 460 kB / 0.5608 GB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.166e-05/0.6104, allocations: 112.1 kB / 0.5609 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.131e-05/0.6105, allocations: 4 kB / 0.5609 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.6107, allocations: 11.98 kB / 0.5609 GB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.524e-05/0.6108, allocations: 27.41 kB / 0.561 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.926e-05/0.6108, allocations: 15.67 kB / 0.561 GB, free: 15.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001674/0.611, allocations: 152 kB / 0.5611 GB, free: 15.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.611, allocations: 0 / 0.5611 GB, free: 15.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003998/0.6114, allocations: 59.22 kB / 0.5612 GB, free: 15.05 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) * 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.001095/0.6125, allocations: 1.02 MB / 0.5622 GB, free: 14.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004907/0.613, allocations: 209 kB / 0.5624 GB, free: 13.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.613, allocations: 0 / 0.5624 GB, free: 13.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001788/0.6132, allocations: 104.1 kB / 0.5625 GB, free: 13.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.6135, allocations: 27.73 kB / 0.5625 GB, free: 13.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.6148, allocations: 0.4984 MB / 0.563 GB, free: 13.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004438/0.6153, allocations: 0.7953 MB / 0.5638 GB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001654/0.6155, allocations: 42.05 kB / 0.5638 GB, free: 12.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.6156, allocations: 105.8 kB / 0.5639 GB, free: 12.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.6156, allocations: 4 kB / 0.5639 GB, free: 12.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02735/0.643, allocations: 4.467 MB / 0.5683 GB, free: 8.035 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002312/0.6433, allocations: 114.6 kB / 0.5684 GB, free: 7.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.973/2.616, allocations: 0 / 0.5684 GB, free: 7.84 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat