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.001214/0.001214, allocations: 183 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.72/1.72, allocations: 205.2 MB / 218.9 MB, free: 9.199 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009882/0.0009883, allocations: 101 kB / 267.1 MB, free: 9.273 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.389/0.389, allocations: 43.47 MB / 358.6 MB, free: 52.37 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.241e-05/4.243e-05, allocations: 0 / 425.4 MB, free: 8.789 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.13, allocations: 58.85 MB / 484.2 MB, free: 13.83 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4245/0.5545, allocations: 87.21 MB / 0.5581 GB, free: 1.727 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.5548, allocations: 61.05 kB / 0.5581 GB, free: 1.668 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01271/0.5675, allocations: 4.296 MB / 0.5623 GB, free: 13.41 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5676, allocations: 0 / 0.5623 GB, free: 13.41 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.224e-05/0.5676, allocations: 12 kB / 0.5623 GB, free: 13.39 MB / 394.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.0009288/0.5686, allocations: 0.532 MB / 0.5628 GB, free: 12.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.5686, allocations: 8.688 kB / 0.5629 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001212/0.5688, allocations: 78.91 kB / 0.5629 GB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.382e-05/0.5689, allocations: 39.53 kB / 0.563 GB, free: 12.69 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000554/0.5694, allocations: 313.4 kB / 0.5633 GB, free: 12.35 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.365e-05/0.5695, allocations: 24.56 kB / 0.5633 GB, free: 12.33 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.143e-05/0.5695, allocations: 33.38 kB / 0.5633 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005034/0.57, allocations: 256.9 kB / 0.5636 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.5701, allocations: 0 / 0.5636 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.535e-05/0.5701, allocations: 12 kB / 0.5636 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.8e-05/0.5701, allocations: 11.95 kB / 0.5636 GB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003187/0.5705, allocations: 166.2 kB / 0.5637 GB, free: 11.85 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.572, allocations: 0.8223 MB / 0.5646 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003686/0.5723, allocations: 196.5 kB / 0.5647 GB, free: 10.79 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.5725, allocations: 84.84 kB / 0.5648 GB, free: 10.7 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.208e-05/0.5725, allocations: 7.984 kB / 0.5648 GB, free: 10.69 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003727/0.5729, allocations: 214.1 kB / 0.565 GB, free: 10.47 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 1.793e-06/0.5729, allocations: 0 / 0.565 GB, free: 10.47 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005356/0.5735, allocations: 255.7 kB / 0.5653 GB, free: 10.22 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.339e-05/0.5735, allocations: 67.34 kB / 0.5653 GB, free: 10.14 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002281/0.5738, allocations: 205 kB / 0.5655 GB, free: 9.934 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.328e-05/0.5738, allocations: 33.7 kB / 0.5656 GB, free: 9.895 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.5739, allocations: 176.4 kB / 0.5657 GB, free: 9.719 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.311e-05/0.574, allocations: 94.7 kB / 0.5658 GB, free: 9.625 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.637e-05/0.5741, allocations: 8 kB / 0.5658 GB, free: 9.617 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.5742, allocations: 339.2 kB / 0.5662 GB, free: 9.277 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.5744, allocations: 76.73 kB / 0.5662 GB, free: 9.199 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.5746, allocations: 221.2 kB / 0.5664 GB, free: 8.926 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/0.5748, allocations: 107.9 kB / 0.5665 GB, free: 8.82 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.5748, allocations: 0 / 0.5665 GB, free: 8.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00052/0.5753, allocations: 342.3 kB / 0.5669 GB, free: 8.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.5754, allocations: 8 kB / 0.5669 GB, free: 8.473 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.5754, allocations: 4 kB / 0.5669 GB, free: 8.469 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.589e-05/0.5754, allocations: 8.469 kB / 0.5669 GB, free: 8.461 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003165/0.5757, allocations: 79.89 kB / 0.567 GB, free: 8.383 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/0.5758, allocations: 15.89 kB / 0.567 GB, free: 8.367 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001831/0.576, allocations: 35.69 kB / 0.567 GB, free: 8.332 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.041e-05/0.576, allocations: 23.98 kB / 0.567 GB, free: 8.309 MB / 394.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 0.0001249/0.5761, allocations: 136.7 kB / 0.5672 GB, free: 8.168 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.081e-05/0.5762, allocations: 23.72 kB / 0.5672 GB, free: 8.145 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005334/0.5767, allocations: 300.4 kB / 0.5675 GB, free: 7.848 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.5767, allocations: 4 kB / 0.5675 GB, free: 7.844 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.5768, allocations: 0 / 0.5675 GB, free: 7.844 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.5768, allocations: 3.953 kB / 0.5675 GB, free: 7.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009406/0.5777, allocations: 0.6902 MB / 0.5682 GB, free: 7.094 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.5777, allocations: 4 kB / 0.5682 GB, free: 7.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002696/0.578, allocations: 47.91 kB / 0.5682 GB, free: 7.043 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.578, allocations: 4 kB / 0.5682 GB, free: 7.039 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.301e-05/0.5781, allocations: 11.98 kB / 0.5682 GB, free: 7.027 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.5781, allocations: 3.953 kB / 0.5682 GB, free: 7.023 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.5781, allocations: 0 / 0.5682 GB, free: 7.023 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008026/0.5789, allocations: 487.5 kB / 0.5687 GB, free: 6.531 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.575e-05/0.579, allocations: 110.1 kB / 0.5688 GB, free: 6.406 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.956e-05/0.5791, allocations: 12.05 kB / 0.5688 GB, free: 6.395 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.5792, allocations: 16 kB / 0.5688 GB, free: 6.379 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.742e-05/0.5793, allocations: 27.91 kB / 0.5689 GB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.91e-05/0.5794, allocations: 15.98 kB / 0.5689 GB, free: 6.336 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001813/0.5796, allocations: 157.4 kB / 0.569 GB, free: 6.184 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5796, allocations: 0 / 0.569 GB, free: 6.184 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004161/0.58, allocations: 79.83 kB / 0.5691 GB, free: 6.105 MB / 394.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.001237/0.5812, allocations: 1.044 MB / 0.5701 GB, free: 5.035 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004469/0.5817, allocations: 228.7 kB / 0.5703 GB, free: 4.812 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.5817, allocations: 0 / 0.5703 GB, free: 4.812 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.5819, allocations: 116.4 kB / 0.5704 GB, free: 4.699 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.5822, allocations: 36.59 kB / 0.5705 GB, free: 4.664 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001174/0.5834, allocations: 0.5422 MB / 0.571 GB, free: 4.094 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/0.5838, allocations: 0.7881 MB / 0.5718 GB, free: 3.277 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001502/0.584, allocations: 38.05 kB / 0.5718 GB, free: 3.238 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001842/0.5841, allocations: 115.4 kB / 0.5719 GB, free: 3.125 MB / 394.7 MB Notification: Performance of SimCode: time 4.61e-07/0.5842, allocations: 0 / 0.5719 GB, free: 3.125 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.6077, allocations: 4.912 MB / 0.5767 GB, free: 14.27 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002698/0.608, allocations: 140 kB / 0.5769 GB, free: 14.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.052/2.66, allocations: 0 / 0.5769 GB, free: 14.04 MB / 410.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