Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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) 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(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",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.002486/0.002486, allocations: 182.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.132/2.132, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001106/0.001106, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.176e-05/4.193e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1073, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4292/0.5366, allocations: 84.13 MB / 453.3 MB, free: 9.113 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002908/0.5369, allocations: 79.33 kB / 453.4 MB, free: 9.074 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07258/0.6095, allocations: 15.81 MB / 469.2 MB, free: 11.03 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.6096, allocations: 0 / 469.2 MB, free: 11.03 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.443e-05/0.6097, allocations: 16 kB / 469.2 MB, free: 11.02 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.003077/0.6127, allocations: 0.9651 MB / 470.2 MB, free: 9.992 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.936e-05/0.6128, allocations: 15.97 kB / 470.2 MB, free: 9.977 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003268/0.6132, allocations: 107.6 kB / 470.3 MB, free: 9.863 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003335/0.6135, allocations: 106.9 kB / 470.4 MB, free: 9.758 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/0.6148, allocations: 478.6 kB / 470.9 MB, free: 9.246 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002655/0.6151, allocations: 104.7 kB / 471 MB, free: 9.129 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/0.6152, allocations: 52 kB / 471 MB, free: 9.078 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001871/0.6171, allocations: 0.7548 MB / 471.8 MB, free: 8.219 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.569e-05/0.6172, allocations: 3.984 kB / 471.8 MB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001206/0.6173, allocations: 28 kB / 471.8 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.887e-05/0.6174, allocations: 12 kB / 471.8 MB, free: 8.176 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001386/0.6188, allocations: 441.2 kB / 472.3 MB, free: 7.746 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006366/0.6252, allocations: 2.068 MB / 474.3 MB, free: 5.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001768/0.627, allocations: 0.4913 MB / 474.8 MB, free: 5.086 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000689/0.6277, allocations: 226.5 kB / 475 MB, free: 4.859 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.219e-05/0.6278, allocations: 16.7 kB / 475.1 MB, free: 4.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000845/0.6287, allocations: 299 kB / 475.3 MB, free: 4.539 MB / 346.7 MB Notification: Performance of pre-optimization done (n=59): time 3.677e-06/0.6287, allocations: 0 / 475.3 MB, free: 4.539 MB / 346.7 MB Notification: Performance of matching and sorting (n=59): time 0.00327/0.632, allocations: 0.7455 MB / 476.1 MB, free: 3.781 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005023/0.6326, allocations: 0.8194 MB / 476.9 MB, free: 2.762 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001153/0.6337, allocations: 0.5152 MB / 477.4 MB, free: 2.238 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002097/0.634, allocations: 41.7 kB / 477.5 MB, free: 2.191 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003564/0.6343, allocations: 351.2 kB / 477.8 MB, free: 1.848 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003171/0.6347, allocations: 209 kB / 478 MB, free: 1.641 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.285e-05/0.6347, allocations: 8 kB / 478 MB, free: 1.633 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.6349, allocations: 334.8 kB / 478.3 MB, free: 1.297 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005931/0.6355, allocations: 177.5 kB / 478.5 MB, free: 1.121 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009943/0.6365, allocations: 487.6 kB / 479 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007466/0.6373, allocations: 281.4 kB / 479.3 MB, free: 244 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.6373, allocations: 7.938 kB / 479.3 MB, free: 236 kB / 346.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0034/0.6407, allocations: 0.8355 MB / 480.1 MB, free: 15.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.349e-05/0.6409, allocations: 67.34 kB / 480.2 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/0.6409, allocations: 4 kB / 480.2 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/0.6422, allocations: 215.7 kB / 480.4 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/0.6436, allocations: 123.8 kB / 480.5 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00912/0.6528, allocations: 4.101 MB / 484.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/0.6541, allocations: 91.5 kB / 484.7 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.6543, allocations: 24.09 kB / 484.7 MB, free: 10.46 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,oneWayValve.backward) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {9 3,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.000289/0.6546, allocations: 149.9 kB / 484.9 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002269/0.6548, allocations: 83.06 kB / 485 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002705/0.6551, allocations: 82.86 kB / 485 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/0.6551, allocations: 15.94 kB / 485.1 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.6551, allocations: 0 / 485.1 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002962/0.6581, allocations: 0.9997 MB / 486.1 MB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004454/0.6626, allocations: 1.502 MB / 487.6 MB, free: 7.445 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/0.6627, allocations: 0 / 487.6 MB, free: 7.445 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/0.664, allocations: 123.8 kB / 487.7 MB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000802/0.6648, allocations: 141.6 kB / 487.8 MB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.785e-05/0.6649, allocations: 27.92 kB / 487.8 MB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006527/0.6715, allocations: 3.515 MB / 491.4 MB, free: 3.367 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.6715, allocations: 0 / 491.4 MB, free: 3.367 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002947/0.6745, allocations: 0.9336 MB / 492.3 MB, free: 2.406 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005866/0.6751, allocations: 216 kB / 492.5 MB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001748/0.6753, allocations: 20 kB / 492.5 MB, free: 2.156 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009514/0.6763, allocations: 52.09 kB / 492.6 MB, free: 2.105 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/0.6765, allocations: 64.41 kB / 492.6 MB, free: 2.043 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.605e-05/0.6766, allocations: 15.98 kB / 492.6 MB, free: 2.027 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008184/0.6775, allocations: 407.2 kB / 493 MB, free: 1.637 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.6775, allocations: 0 / 493 MB, free: 1.637 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001361/0.6789, allocations: 283.6 kB / 493.3 MB, free: 1.359 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 3,1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003454/0.6823, allocations: 1.506 MB / 494.8 MB, free: 15.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002706/0.6851, allocations: 0.9413 MB / 495.8 MB, free: 14.83 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/0.6852, allocations: 4 kB / 495.8 MB, free: 14.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001322/0.6865, allocations: 0.508 MB / 496.3 MB, free: 14.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001579/0.6881, allocations: 195.5 kB / 496.5 MB, free: 14.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003782/0.6919, allocations: 1.013 MB / 497.5 MB, free: 13.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007097/0.6927, allocations: 0.9395 MB / 498.4 MB, free: 12.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006559/0.6934, allocations: 263.3 kB / 498.7 MB, free: 11.82 MB / 378.7 MB Notification: Performance of SimCode: time 1.654e-06/0.6934, allocations: 7.938 kB / 498.7 MB, free: 11.81 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.977/3.67, allocations: 18.51 MB / 0.5051 GB, free: 9.277 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat