Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002329/0.002329, allocations: 180.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.312/2.312, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001085/0.001085, allocations: 94.58 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2869/0.2869, allocations: 43.5 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.792e-05/3.803e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1205, allocations: 58.84 MB / 484.2 MB, free: 12.4 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5065/0.627, allocations: 87.22 MB / 0.5581 GB, free: 340 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.6273, allocations: 63.44 kB / 0.5581 GB, free: 312 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02031/0.6477, allocations: 4.283 MB / 0.5623 GB, free: 12.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.6477, allocations: 0 / 0.5623 GB, free: 12.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.954e-05/0.6478, allocations: 12 kB / 0.5623 GB, free: 12.66 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001294/0.6491, allocations: 0.5357 MB / 0.5628 GB, free: 12.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.6491, allocations: 11.97 kB / 0.5628 GB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000164/0.6493, allocations: 74.7 kB / 0.5629 GB, free: 12.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.6494, allocations: 43.47 kB / 0.563 GB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000669/0.6501, allocations: 307.4 kB / 0.5632 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/0.6502, allocations: 27.5 kB / 0.5633 GB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.305e-05/0.6502, allocations: 30.75 kB / 0.5633 GB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006897/0.651, allocations: 255.8 kB / 0.5635 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.651, allocations: 0 / 0.5635 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.627e-05/0.6511, allocations: 15 kB / 0.5636 GB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.83e-05/0.6511, allocations: 11.95 kB / 0.5636 GB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005054/0.6516, allocations: 176.1 kB / 0.5637 GB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002099/0.6537, allocations: 0.8181 MB / 0.5645 GB, free: 10.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005528/0.6543, allocations: 190.7 kB / 0.5647 GB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/0.6546, allocations: 89.64 kB / 0.5648 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.029e-05/0.6546, allocations: 4.438 kB / 0.5648 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005457/0.6552, allocations: 217 kB / 0.565 GB, free: 10.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 4.379e-06/0.6552, allocations: 4 kB / 0.565 GB, free: 10.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007634/0.656, allocations: 249.4 kB / 0.5653 GB, free: 10.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.032e-05/0.6561, allocations: 67.03 kB / 0.5653 GB, free: 9.961 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000316/0.6564, allocations: 204 kB / 0.5655 GB, free: 9.785 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.6e-05/0.6565, allocations: 35.89 kB / 0.5656 GB, free: 9.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.6566, allocations: 231.9 kB / 0.5658 GB, free: 9.551 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.6568, allocations: 95.33 kB / 0.5659 GB, free: 9.473 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-05/0.6568, allocations: 6.625 kB / 0.5659 GB, free: 9.473 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.657, allocations: 326.5 kB / 0.5662 GB, free: 9.148 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002294/0.6572, allocations: 79.55 kB / 0.5663 GB, free: 9.094 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003665/0.6576, allocations: 210.4 kB / 0.5665 GB, free: 8.867 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003003/0.6579, allocations: 107.8 kB / 0.5666 GB, free: 8.789 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.6579, allocations: 0 / 0.5666 GB, free: 8.789 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008313/0.6588, allocations: 324.8 kB / 0.5669 GB, free: 8.535 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.6589, allocations: 8 kB / 0.5669 GB, free: 8.527 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/0.6589, allocations: 7.984 kB / 0.5669 GB, free: 8.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.922e-05/0.6589, allocations: 8 kB / 0.5669 GB, free: 8.512 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005994/0.6595, allocations: 75.72 kB / 0.567 GB, free: 8.441 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.105e-05/0.6596, allocations: 27.81 kB / 0.567 GB, free: 8.414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003159/0.6599, allocations: 34.88 kB / 0.567 GB, free: 8.383 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-05/0.66, allocations: 19.11 kB / 0.567 GB, free: 8.367 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 () * 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.0001877/0.6602, allocations: 138.1 kB / 0.5672 GB, free: 8.238 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.2e-05/0.6603, allocations: 23.72 kB / 0.5672 GB, free: 8.215 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008646/0.6611, allocations: 297.8 kB / 0.5675 GB, free: 7.996 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.6612, allocations: 7.938 kB / 0.5675 GB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.6612, allocations: 0 / 0.5675 GB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.6612, allocations: 8.078 kB / 0.5675 GB, free: 7.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.6625, allocations: 0.6915 MB / 0.5682 GB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.6625, allocations: 0 / 0.5682 GB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005124/0.663, allocations: 55.91 kB / 0.5682 GB, free: 7.309 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.154e-06/0.6631, allocations: 0 / 0.5682 GB, free: 7.309 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.452e-05/0.6631, allocations: 15.23 kB / 0.5682 GB, free: 7.301 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.6631, allocations: 3.953 kB / 0.5682 GB, free: 7.297 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.6632, allocations: 4 kB / 0.5682 GB, free: 7.293 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.6642, allocations: 484.2 kB / 0.5687 GB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.978e-05/0.6644, allocations: 107.9 kB / 0.5688 GB, free: 6.793 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.074e-05/0.6644, allocations: 7.5 kB / 0.5688 GB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003025/0.6647, allocations: 22.42 kB / 0.5688 GB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.738e-05/0.6649, allocations: 23.91 kB / 0.5689 GB, free: 6.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.975e-05/0.6649, allocations: 11.38 kB / 0.5689 GB, free: 6.742 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002294/0.6652, allocations: 167.9 kB / 0.569 GB, free: 6.605 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6652, allocations: 0 / 0.569 GB, free: 6.605 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005345/0.6657, allocations: 69.14 kB / 0.5691 GB, free: 6.547 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.001521/0.6672, allocations: 1.04 MB / 0.5701 GB, free: 5.598 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006626/0.6679, allocations: 233.2 kB / 0.5703 GB, free: 5.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.668, allocations: 0 / 0.5703 GB, free: 5.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003279/0.6683, allocations: 122.8 kB / 0.5705 GB, free: 5.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.6687, allocations: 31 kB / 0.5705 GB, free: 5.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001861/0.6706, allocations: 0.5725 MB / 0.571 GB, free: 4.773 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005197/0.6711, allocations: 0.7919 MB / 0.5718 GB, free: 3.957 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002856/0.6714, allocations: 119.3 kB / 0.5719 GB, free: 3.914 MB / 378.7 MB Notification: Performance of SimCode: time 1.403e-06/0.6715, allocations: 0 / 0.5719 GB, free: 3.914 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.629/3.301, allocations: 4.744 MB / 0.5766 GB, free: 15.23 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat