Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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) 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(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",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.001018/0.001018, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.597/1.597, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.001062/0.001062, allocations: 97.72 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.421e-05/1.424e-05, allocations: 0 / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1135, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3876/0.5012, allocations: 82.62 MB / 470.2 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004028/0.5017, allocations: 73.8 kB / 470.3 MB, free: 12.03 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05648/0.5582, allocations: 15.48 MB / 485.7 MB, free: 12.44 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.436e-06/0.5583, allocations: 0 / 485.7 MB, free: 12.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.658e-05/0.5584, allocations: 12 kB / 485.7 MB, free: 12.43 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.0024/0.5608, allocations: 0.9809 MB / 486.7 MB, free: 11.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.678e-05/0.5609, allocations: 12.02 kB / 486.7 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000245/0.5611, allocations: 106.8 kB / 486.8 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009598/0.5621, allocations: 462.8 kB / 487.3 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000197/0.5623, allocations: 88.7 kB / 487.4 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.5624, allocations: 32 kB / 487.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001137/0.5636, allocations: 410.5 kB / 487.8 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.565, allocations: 0.658 MB / 488.5 MB, free: 9.484 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.862e-05/0.565, allocations: 7.953 kB / 488.5 MB, free: 9.477 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.971e-05/0.5651, allocations: 4 kB / 488.5 MB, free: 9.473 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.993e-05/0.5652, allocations: 12 kB / 488.5 MB, free: 9.461 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004671/0.5699, allocations: 1.95 MB / 490.4 MB, free: 7.434 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001298/0.5712, allocations: 469.6 kB / 490.9 MB, free: 6.961 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004659/0.5717, allocations: 214.5 kB / 491.1 MB, free: 6.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.998e-05/0.5717, allocations: 20.92 kB / 491.1 MB, free: 6.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006782/0.5724, allocations: 274 kB / 491.4 MB, free: 6.445 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 3.787e-06/0.5725, allocations: 0 / 491.4 MB, free: 6.445 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.002459/0.5749, allocations: 0.7065 MB / 492.1 MB, free: 5.727 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004919/0.5754, allocations: 0.8233 MB / 492.9 MB, free: 4.707 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008571/0.5763, allocations: 454.6 kB / 493.4 MB, free: 4.254 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.42e-05/0.5764, allocations: 29.7 kB / 493.4 MB, free: 4.219 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004211/0.5768, allocations: 340.5 kB / 493.7 MB, free: 3.883 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002472/0.5771, allocations: 189.2 kB / 493.9 MB, free: 3.695 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.903e-05/0.5771, allocations: 0 / 493.9 MB, free: 3.695 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002444/0.5774, allocations: 374.8 kB / 494.3 MB, free: 3.32 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004239/0.5778, allocations: 161.5 kB / 494.4 MB, free: 3.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007991/0.5786, allocations: 470.1 kB / 494.9 MB, free: 2.582 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005202/0.5792, allocations: 210.5 kB / 495.1 MB, free: 2.375 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.5792, allocations: 4 kB / 495.1 MB, free: 2.371 MB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002484/0.5817, allocations: 0.773 MB / 495.9 MB, free: 1.586 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.521e-05/0.5818, allocations: 63.34 kB / 495.9 MB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.5818, allocations: 0 / 495.9 MB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001048/0.5829, allocations: 211.4 kB / 496.1 MB, free: 1.301 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009923/0.5839, allocations: 127.8 kB / 496.3 MB, free: 1.176 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007504/0.5914, allocations: 3.971 MB / 0.4885 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.5925, allocations: 71.48 kB / 0.4886 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.539e-05/0.5926, allocations: 28 kB / 0.4886 GB, free: 12.87 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real idealPump.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real oneWayValve.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real oneWayValve.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real 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.0003872/0.593, allocations: 130 kB / 0.4887 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002323/0.5954, allocations: 0.7027 MB / 0.4894 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.5955, allocations: 75.16 kB / 0.4895 GB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002315/0.5958, allocations: 70.86 kB / 0.4896 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.5958, allocations: 8 kB / 0.4896 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.5958, allocations: 0 / 0.4896 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002089/0.5979, allocations: 0.9724 MB / 0.4905 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003007/0.6009, allocations: 1.385 MB / 0.4919 GB, free: 9.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.6009, allocations: 3.938 kB / 0.4919 GB, free: 9.336 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009421/0.6019, allocations: 123.8 kB / 0.492 GB, free: 9.215 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005771/0.6025, allocations: 145.6 kB / 0.4921 GB, free: 9.066 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.099e-05/0.6026, allocations: 7.984 kB / 0.4921 GB, free: 9.059 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005274/0.6078, allocations: 3.376 MB / 0.4954 GB, free: 5.449 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.754e-06/0.6079, allocations: 7.984 kB / 0.4954 GB, free: 5.441 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/0.6102, allocations: 0.8983 MB / 0.4963 GB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005409/0.6107, allocations: 208.1 kB / 0.4965 GB, free: 4.297 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.6109, allocations: 4 kB / 0.4965 GB, free: 4.293 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006587/0.6115, allocations: 35.95 kB / 0.4966 GB, free: 4.258 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002232/0.6118, allocations: 56.48 kB / 0.4966 GB, free: 4.203 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.437e-05/0.6119, allocations: 20.05 kB / 0.4966 GB, free: 4.184 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006766/0.6125, allocations: 350.9 kB / 0.497 GB, free: 3.844 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6126, allocations: 0 / 0.497 GB, free: 3.844 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00126/0.6138, allocations: 239.5 kB / 0.4972 GB, free: 3.609 MB / 378.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.002476/0.6163, allocations: 1.468 MB / 0.4986 GB, free: 2.105 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002127/0.6184, allocations: 0.8824 MB / 0.4995 GB, free: 1.176 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/0.6185, allocations: 4 kB / 0.4995 GB, free: 1.172 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009868/0.6195, allocations: 493.9 kB / 0.5 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.6208, allocations: 168.3 kB / 0.5001 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003065/0.6238, allocations: 0.9249 MB / 0.501 GB, free: 15.55 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000769/0.6246, allocations: 0.9319 MB / 0.5019 GB, free: 14.59 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005596/0.6252, allocations: 65.05 kB / 0.502 GB, free: 14.52 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004818/0.6257, allocations: 259.3 kB / 0.5023 GB, free: 14.27 MB / 394.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6257, allocations: 0 / 0.5023 GB, free: 14.27 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06394/0.6897, allocations: 18.49 MB / 0.5203 GB, free: 12.02 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002486/0.69, allocations: 133.2 kB / 0.5204 GB, free: 11.83 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.732/3.422, allocations: 0 / 0.5204 GB, free: 11.83 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat