Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",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.001258/0.001258, allocations: 179.1 kB / 8.697 MB, free: 388 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.749/1.749, allocations: 205.3 MB / 214.4 MB, free: 1.66 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.001282/0.001282, allocations: 83.97 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.877e-05/2.915e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.122, allocations: 47.59 MB / 363.2 MB, free: 6.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4412/0.5633, allocations: 82.93 MB / 446.1 MB, free: 12.76 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003896/0.5638, allocations: 70.44 kB / 446.2 MB, free: 12.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03868/0.6025, allocations: 13.86 MB / 460 MB, free: 1.379 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.6026, allocations: 4 kB / 460 MB, free: 1.375 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.738e-05/0.6026, allocations: 16 kB / 460 MB, free: 1.359 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001616/0.6042, allocations: 0.9049 MB / 460.9 MB, free: 452 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/0.6043, allocations: 8.031 kB / 461 MB, free: 444 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001465/0.6045, allocations: 91 kB / 461 MB, free: 352 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006994/0.6052, allocations: 452.4 kB / 461.5 MB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/0.6053, allocations: 88.66 kB / 461.6 MB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.202e-05/0.6054, allocations: 28 kB / 461.6 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006531/0.6061, allocations: 355.6 kB / 461.9 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000818/0.6069, allocations: 0.5415 MB / 462.5 MB, free: 15.08 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.6069, allocations: 0 / 462.5 MB, free: 15.08 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.477e-05/0.607, allocations: 0 / 462.5 MB, free: 15.08 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.607, allocations: 12 kB / 462.5 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003056/0.6101, allocations: 1.804 MB / 464.3 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00164/0.6117, allocations: 0.6429 MB / 464.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003285/0.6121, allocations: 211.5 kB / 465.2 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.81e-05/0.6121, allocations: 16.11 kB / 465.2 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/0.6122, allocations: 45.62 kB / 465.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=56): time 2.083e-06/0.6122, allocations: 0 / 465.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=56): time 0.001756/0.614, allocations: 0.6636 MB / 465.9 MB, free: 12.37 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002875/0.6143, allocations: 0.568 MB / 466.4 MB, free: 11.67 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004842/0.6148, allocations: 410.8 kB / 466.8 MB, free: 11.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.925e-05/0.6148, allocations: 29.7 kB / 466.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.615, allocations: 290.2 kB / 467.2 MB, free: 11.13 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.6152, allocations: 181.8 kB / 467.3 MB, free: 10.97 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.763e-05/0.6152, allocations: 0 / 467.3 MB, free: 10.97 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.6154, allocations: 370.1 kB / 467.7 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000245/0.6156, allocations: 151.6 kB / 467.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004346/0.6161, allocations: 351.8 kB / 468.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.6164, allocations: 188.1 kB / 468.4 MB, free: 10.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.6164, allocations: 0 / 468.4 MB, free: 10.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001753/0.6182, allocations: 0.7031 MB / 469.1 MB, free: 9.527 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.422e-05/0.6183, allocations: 33.7 kB / 469.1 MB, free: 9.488 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.6183, allocations: 0 / 469.1 MB, free: 9.488 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008664/0.6191, allocations: 217.1 kB / 469.3 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007408/0.6199, allocations: 139 kB / 469.5 MB, free: 9.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005574/0.6255, allocations: 4.858 MB / 474.3 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007293/0.6262, allocations: 63.86 kB / 474.4 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-05/0.6263, allocations: 22.56 kB / 474.4 MB, free: 4.414 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_b.m_flow:VARIABLE(flow=true unit = "kg/s" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real 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 pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.000282/0.6266, allocations: 137 kB / 474.5 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001677/0.6283, allocations: 0.6615 MB / 475.2 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.6284, allocations: 67.25 kB / 475.3 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001766/0.6302, allocations: 0.6889 MB / 476 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.6302, allocations: 15.88 kB / 476 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.6302, allocations: 3.938 kB / 476 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001518/0.6317, allocations: 0.9455 MB / 476.9 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002594/0.6343, allocations: 1.347 MB / 478.3 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.6344, allocations: 3.938 kB / 478.3 MB, free: 1.121 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007876/0.6352, allocations: 143.6 kB / 478.4 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006308/0.6358, allocations: 150 kB / 478.6 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.178e-05/0.6359, allocations: 11.11 kB / 478.6 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004205/0.6401, allocations: 3.288 MB / 481.9 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.6401, allocations: 3.953 kB / 481.9 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/0.6423, allocations: 0.9423 MB / 482.8 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000328/0.6426, allocations: 204.2 kB / 483 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.933e-05/0.6427, allocations: 3.953 kB / 483 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004011/0.6431, allocations: 35.97 kB / 483 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.6432, allocations: 40.5 kB / 483.1 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.487e-05/0.6433, allocations: 19.98 kB / 483.1 MB, free: 12.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004397/0.6437, allocations: 319 kB / 483.4 MB, free: 11.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6437, allocations: 0 / 483.4 MB, free: 11.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008612/0.6446, allocations: 207.7 kB / 483.6 MB, free: 11.7 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002398/0.647, allocations: 1.499 MB / 485.1 MB, free: 10.16 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.6486, allocations: 0.8651 MB / 486 MB, free: 9.254 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.6487, allocations: 4 kB / 486 MB, free: 9.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007921/0.6495, allocations: 485.7 kB / 486.5 MB, free: 8.758 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007661/0.6502, allocations: 154.5 kB / 486.6 MB, free: 8.609 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002107/0.6524, allocations: 0.9597 MB / 487.6 MB, free: 7.613 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004837/0.6528, allocations: 0.9035 MB / 488.5 MB, free: 6.68 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00034/0.6532, allocations: 76.89 kB / 488.5 MB, free: 6.605 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003159/0.6535, allocations: 223.3 kB / 488.8 MB, free: 6.391 MB / 362.7 MB Notification: Performance of SimCode: time 7.11e-07/0.6535, allocations: 0 / 488.8 MB, free: 6.391 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04319/0.6967, allocations: 16.1 MB / 0.493 GB, free: 6.27 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002751/0.6971, allocations: 136.7 kB / 0.4932 GB, free: 6.082 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.577/3.274, allocations: 32 / 0.4932 GB, free: 6.082 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat