Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_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.001642/0.001642, allocations: 177 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.912/1.912, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 78.7 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.304e-05/2.335e-05, allocations: 0 / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1077, allocations: 47.59 MB / 363.2 MB, free: 6.992 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4186/0.5264, allocations: 83.71 MB / 446.9 MB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.5266, allocations: 74.22 kB / 447 MB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04012/0.5668, allocations: 15.64 MB / 462.6 MB, free: 14.87 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5668, allocations: 0 / 462.6 MB, free: 14.87 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.914e-05/0.5669, allocations: 12 kB / 462.6 MB, free: 14.86 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.001756/0.5686, allocations: 0.9713 MB / 463.6 MB, free: 13.88 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.5687, allocations: 8.031 kB / 463.6 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/0.5689, allocations: 98.88 kB / 463.7 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006695/0.5695, allocations: 476.8 kB / 464.1 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001652/0.5697, allocations: 92.14 kB / 464.2 MB, free: 13.24 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.853e-05/0.5698, allocations: 35.95 kB / 464.3 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007203/0.5705, allocations: 410.3 kB / 464.7 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009992/0.5715, allocations: 0.663 MB / 465.3 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/0.5716, allocations: 3.906 kB / 465.3 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.255e-05/0.5716, allocations: 0 / 465.3 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.936e-05/0.5717, allocations: 16 kB / 465.3 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003487/0.5752, allocations: 1.945 MB / 467.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008958/0.5761, allocations: 475.8 kB / 467.8 MB, free: 10.44 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/0.5764, allocations: 211 kB / 468 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.162e-05/0.5764, allocations: 13.64 kB / 468 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004711/0.5769, allocations: 275 kB / 468.2 MB, free: 10.1 MB / 346.7 MB Notification: Performance of pre-optimization done (n=59): time 3.707e-06/0.5769, allocations: 3.984 kB / 468.3 MB, free: 10.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=59): time 0.001707/0.5787, allocations: 0.7087 MB / 469 MB, free: 9.539 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000493/0.5792, allocations: 0.8225 MB / 469.8 MB, free: 8.523 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005905/0.5798, allocations: 454.3 kB / 470.2 MB, free: 8.188 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.311e-05/0.5798, allocations: 33.64 kB / 470.3 MB, free: 8.148 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00026/0.5801, allocations: 334.7 kB / 470.6 MB, free: 7.93 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.5803, allocations: 195.5 kB / 470.8 MB, free: 7.762 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.5803, allocations: 0 / 470.8 MB, free: 7.762 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.5805, allocations: 378 kB / 471.1 MB, free: 7.41 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/0.5807, allocations: 158 kB / 471.3 MB, free: 7.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005278/0.5813, allocations: 475.9 kB / 471.8 MB, free: 6.844 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003245/0.5816, allocations: 206.8 kB / 472 MB, free: 6.711 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.5816, allocations: 0 / 472 MB, free: 6.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001644/0.5833, allocations: 0.7675 MB / 472.7 MB, free: 6.105 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.899e-05/0.5833, allocations: 59.44 kB / 472.8 MB, free: 6.035 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.5834, allocations: 7.953 kB / 472.8 MB, free: 6.027 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006586/0.584, allocations: 208 kB / 473 MB, free: 5.871 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006643/0.5847, allocations: 127.8 kB / 473.1 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004917/0.5896, allocations: 3.953 MB / 477.1 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006572/0.5903, allocations: 79.33 kB / 477.2 MB, free: 2.086 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.483e-05/0.5904, allocations: 23.94 kB / 477.2 MB, free: 2.066 MB / 346.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.000255/0.5906, allocations: 145.7 kB / 477.3 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001513/0.5921, allocations: 0.7024 MB / 478 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.601e-05/0.5923, allocations: 75.16 kB / 478.1 MB, free: 1.293 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001717/0.5924, allocations: 75.33 kB / 478.2 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.5924, allocations: 4 kB / 478.2 MB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.5924, allocations: 0 / 478.2 MB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001389/0.5938, allocations: 0.966 MB / 479.1 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002031/0.5959, allocations: 1.378 MB / 480.5 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.5959, allocations: 0 / 480.5 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006571/0.5966, allocations: 123.8 kB / 480.6 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004015/0.597, allocations: 149.6 kB / 480.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.734e-05/0.597, allocations: 11.92 kB / 480.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003574/0.6006, allocations: 3.384 MB / 484.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.6006, allocations: 0 / 484.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.602, allocations: 0.8827 MB / 485.1 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003102/0.6024, allocations: 212.3 kB / 485.3 MB, free: 9.961 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.913e-05/0.6025, allocations: 7.938 kB / 485.3 MB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004416/0.6029, allocations: 51.84 kB / 485.3 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.6031, allocations: 52.48 kB / 485.4 MB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.688e-05/0.6031, allocations: 19.98 kB / 485.4 MB, free: 9.832 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004289/0.6035, allocations: 350.9 kB / 485.7 MB, free: 9.492 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.793e-06/0.6035, allocations: 112 / 485.7 MB, free: 9.492 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008238/0.6044, allocations: 243.5 kB / 486 MB, free: 9.254 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.001747/0.6061, allocations: 1.455 MB / 487.4 MB, free: 7.766 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.6077, allocations: 0.8946 MB / 488.3 MB, free: 6.824 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.6077, allocations: 4 kB / 488.3 MB, free: 6.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006655/0.6083, allocations: 485.4 kB / 488.8 MB, free: 6.328 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000838/0.6092, allocations: 171.6 kB / 489 MB, free: 6.164 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.6113, allocations: 0.9104 MB / 489.9 MB, free: 5.215 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004707/0.6118, allocations: 0.9358 MB / 490.8 MB, free: 4.25 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003252/0.6121, allocations: 73.05 kB / 490.9 MB, free: 4.176 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003133/0.6125, allocations: 255.3 kB / 491.1 MB, free: 3.93 MB / 362.7 MB Notification: Performance of SimCode: time 5.61e-07/0.6125, allocations: 4 kB / 491.1 MB, free: 3.926 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04398/0.6565, allocations: 18.49 MB / 0.4977 GB, free: 1.41 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003081/0.6568, allocations: 144.5 kB / 0.4978 GB, free: 1.211 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.661/3.318, allocations: 3.938 kB / 0.4978 GB, free: 1.207 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat