Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.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.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams",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.001056/0.001056, allocations: 171.7 kB / 8.741 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 221.5 MB / 230.7 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009227/0.0009227, allocations: 102 kB / 281.6 MB, free: 5.32 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.1978/0.1978, allocations: 44.15 MB / 376.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.169e-05/2.172e-05, allocations: 224 / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1431, allocations: 61.92 MB / 0.4948 GB, free: 1.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4197/0.5629, allocations: 85.35 MB / 0.5781 GB, free: 10.97 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001843/0.5631, allocations: 55.97 kB / 0.5782 GB, free: 10.92 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006423/0.5696, allocations: 2.297 MB / 0.5804 GB, free: 8.633 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.5696, allocations: 0 / 0.5804 GB, free: 8.633 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.5696, allocations: 0 / 0.5804 GB, free: 8.633 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004376/0.5701, allocations: 352.3 kB / 0.5807 GB, free: 8.238 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.01e-05/0.5702, allocations: 11.98 kB / 0.5808 GB, free: 8.227 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.25e-05/0.5702, allocations: 7.984 kB / 0.5808 GB, free: 8.219 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.5703, allocations: 163 kB / 0.5809 GB, free: 8.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.989e-05/0.5704, allocations: 1.125 kB / 0.5809 GB, free: 8.02 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.5704, allocations: 0 / 0.5809 GB, free: 8.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.434e-05/0.5705, allocations: 7.953 kB / 0.5809 GB, free: 8.012 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.036e-05/0.5706, allocations: 33.7 kB / 0.581 GB, free: 7.973 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.5706, allocations: 0 / 0.581 GB, free: 7.973 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.5706, allocations: 0 / 0.581 GB, free: 7.973 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.5706, allocations: 0 / 0.581 GB, free: 7.973 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001633/0.5708, allocations: 130.2 kB / 0.5811 GB, free: 7.809 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.566e-05/0.5708, allocations: 18.61 kB / 0.5811 GB, free: 7.781 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.127e-05/0.5709, allocations: 8.797 kB / 0.5811 GB, free: 7.77 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.117e-05/0.5709, allocations: 7.828 kB / 0.5811 GB, free: 7.766 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.432e-05/0.5709, allocations: 56.27 kB / 0.5812 GB, free: 7.695 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.571, allocations: 0 / 0.5812 GB, free: 7.695 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002648/0.5712, allocations: 45.7 kB / 0.5812 GB, free: 7.645 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.5713, allocations: 77.11 kB / 0.5813 GB, free: 7.551 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.091e-05/0.5714, allocations: 85 kB / 0.5814 GB, free: 7.461 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.5714, allocations: 25.7 kB / 0.5814 GB, free: 7.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.055e-05/0.5715, allocations: 85.02 kB / 0.5815 GB, free: 7.344 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.786e-05/0.5715, allocations: 4 kB / 0.5815 GB, free: 7.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.264e-06/0.5715, allocations: 0 / 0.5815 GB, free: 7.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.5717, allocations: 310.8 kB / 0.5818 GB, free: 7.027 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-06/0.5717, allocations: 0 / 0.5818 GB, free: 7.027 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.009e-06/0.5717, allocations: 0 / 0.5818 GB, free: 7.027 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.873e-05/0.5718, allocations: 4 kB / 0.5818 GB, free: 7.023 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.5718, allocations: 3.984 kB / 0.5818 GB, free: 7.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.265e-05/0.5719, allocations: 41.73 kB / 0.5818 GB, free: 6.973 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.579e-05/0.5719, allocations: 37.64 kB / 0.5819 GB, free: 6.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.5719, allocations: 0.5625 kB / 0.5819 GB, free: 6.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.572, allocations: 0 / 0.5819 GB, free: 6.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.076e-06/0.572, allocations: 3.984 kB / 0.5819 GB, free: 6.926 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.572, allocations: 11.94 kB / 0.5819 GB, free: 6.914 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.471e-05/0.572, allocations: 4 kB / 0.5819 GB, free: 6.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-06/0.572, allocations: 0 / 0.5819 GB, free: 6.91 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 9.365e-05/0.5721, allocations: 126.7 kB / 0.582 GB, free: 6.773 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.076e-05/0.5722, allocations: 45.69 kB / 0.582 GB, free: 6.723 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.38e-06/0.5722, allocations: 0 / 0.582 GB, free: 6.723 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.6e-05/0.5722, allocations: 7.703 kB / 0.5821 GB, free: 6.715 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.5722, allocations: 3.953 kB / 0.5821 GB, free: 6.711 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.5723, allocations: 0 / 0.5821 GB, free: 6.711 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.5723, allocations: 7.938 kB / 0.5821 GB, free: 6.703 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.246e-05/0.5724, allocations: 122.2 kB / 0.5822 GB, free: 6.547 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.5724, allocations: 0 / 0.5822 GB, free: 6.547 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.004e-06/0.5724, allocations: 3.984 kB / 0.5822 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.5724, allocations: 0 / 0.5822 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.5724, allocations: 0 / 0.5822 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.5724, allocations: 7.969 kB / 0.5822 GB, free: 6.535 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5724, allocations: 4 kB / 0.5822 GB, free: 6.531 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001001/0.5725, allocations: 65.08 kB / 0.5823 GB, free: 6.449 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.274e-05/0.5726, allocations: 77.11 kB / 0.5823 GB, free: 6.355 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.5726, allocations: 4 kB / 0.5823 GB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.025e-06/0.5726, allocations: 0 / 0.5823 GB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.606e-05/0.5726, allocations: 0 / 0.5823 GB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.5726, allocations: 4.031 kB / 0.5823 GB, free: 6.348 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.877e-05/0.5727, allocations: 83.23 kB / 0.5824 GB, free: 6.266 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5727, allocations: 0 / 0.5824 GB, free: 6.266 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000263/0.573, allocations: 43.98 kB / 0.5825 GB, free: 6.223 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0009624/0.5739, allocations: 0.7767 MB / 0.5832 GB, free: 5.465 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001033/0.574, allocations: 55.41 kB / 0.5833 GB, free: 5.398 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.5741, allocations: 0 / 0.5833 GB, free: 5.398 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.666e-05/0.5741, allocations: 63.33 kB / 0.5833 GB, free: 5.324 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.776e-05/0.5742, allocations: 0 / 0.5833 GB, free: 5.324 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003251/0.5745, allocations: 96.09 kB / 0.5834 GB, free: 5.195 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.5749, allocations: 0.6729 MB / 0.5841 GB, free: 4.496 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 8.036e-06/0.5749, allocations: 0 / 0.5841 GB, free: 4.496 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.463e-05/0.5749, allocations: 15.5 kB / 0.5841 GB, free: 4.48 MB / 394.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5749, allocations: 0 / 0.5841 GB, free: 4.48 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0196/0.5945, allocations: 1.264 MB / 0.5853 GB, free: 3.219 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001847/0.5947, allocations: 154.1 kB / 0.5855 GB, free: 3.027 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.497/2.092, allocations: 3.938 kB / 0.5855 GB, free: 3.023 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat does not exist to compare? outputFormat=mat