Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",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.001522/0.001522, allocations: 176.6 kB / 8.35 MB, free: 0.7188 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.588/1.588, allocations: 221.5 MB / 230.3 MB, free: 7.531 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.0008235/0.0008236, allocations: 88.69 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.285e-05/2.279e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1219, allocations: 50.43 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3797/0.5016, allocations: 81.98 MB / 469.5 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001929/0.5018, allocations: 67.95 kB / 469.6 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03681/0.5387, allocations: 13.7 MB / 483.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5387, allocations: 0 / 483.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.493e-05/0.5387, allocations: 12 kB / 483.3 MB, free: 14.88 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001519/0.5403, allocations: 0.9043 MB / 484.2 MB, free: 13.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.5403, allocations: 8.031 kB / 484.2 MB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.5405, allocations: 91.06 kB / 484.3 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006361/0.5411, allocations: 452.1 kB / 484.8 MB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001343/0.5413, allocations: 80.72 kB / 484.8 MB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.767e-05/0.5413, allocations: 27.98 kB / 484.9 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006149/0.542, allocations: 354.5 kB / 485.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007627/0.5427, allocations: 0.5488 MB / 485.8 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.963e-05/0.5428, allocations: 7.922 kB / 485.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.16e-05/0.5428, allocations: 0 / 485.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.5428, allocations: 12 kB / 485.8 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002947/0.5458, allocations: 1.793 MB / 487.6 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001664/0.5475, allocations: 0.6535 MB / 488.2 MB, free: 9.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003129/0.5478, allocations: 215.8 kB / 488.4 MB, free: 9.449 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.361e-05/0.5479, allocations: 12.56 kB / 488.4 MB, free: 9.438 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.5479, allocations: 39.12 kB / 488.5 MB, free: 9.391 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 5.17e-06/0.5479, allocations: 4 kB / 488.5 MB, free: 9.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.001819/0.5497, allocations: 0.6606 MB / 489.2 MB, free: 8.707 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000219/0.55, allocations: 0.5684 MB / 489.7 MB, free: 8.004 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005406/0.5505, allocations: 418.1 kB / 490.1 MB, free: 7.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.265e-05/0.5506, allocations: 33.7 kB / 490.2 MB, free: 7.551 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.5508, allocations: 281.2 kB / 490.4 MB, free: 7.273 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.551, allocations: 189.2 kB / 490.6 MB, free: 7.086 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.593e-05/0.551, allocations: 0 / 490.6 MB, free: 7.086 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.5512, allocations: 366.7 kB / 491 MB, free: 6.719 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002583/0.5515, allocations: 153.1 kB / 491.1 MB, free: 6.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004174/0.5519, allocations: 351.5 kB / 491.5 MB, free: 6.145 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003171/0.5522, allocations: 186.2 kB / 491.7 MB, free: 5.965 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.5522, allocations: 0 / 491.7 MB, free: 5.965 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001715/0.5539, allocations: 0.6958 MB / 492.3 MB, free: 5.254 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.003e-05/0.554, allocations: 41.69 kB / 492.4 MB, free: 5.207 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.554, allocations: 4.031 kB / 492.4 MB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008235/0.5549, allocations: 202.4 kB / 492.6 MB, free: 4.996 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007715/0.5556, allocations: 139.8 kB / 492.7 MB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005787/0.5614, allocations: 4.87 MB / 497.6 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000776/0.5623, allocations: 63.78 kB / 497.7 MB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-05/0.5623, allocations: 27.98 kB / 497.7 MB, free: 15.55 MB / 378.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.0002729/0.5626, allocations: 133 kB / 497.8 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00166/0.5643, allocations: 0.6567 MB / 498.5 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.5644, allocations: 67.25 kB / 498.5 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001743/0.5661, allocations: 0.6947 MB / 499.2 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.824e-06/0.5662, allocations: 8 kB / 499.2 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.5662, allocations: 0 / 499.2 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001496/0.5677, allocations: 0.9528 MB / 0.4885 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002534/0.5702, allocations: 1.355 MB / 0.4898 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.5702, allocations: 0 / 0.4898 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007956/0.571, allocations: 143.8 kB / 0.4899 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006021/0.5717, allocations: 149.6 kB / 0.4901 GB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.591e-05/0.5717, allocations: 4 kB / 0.4901 GB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004272/0.576, allocations: 3.292 MB / 0.4933 GB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/0.576, allocations: 0 / 0.4933 GB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/0.5783, allocations: 0.9413 MB / 0.4942 GB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004194/0.5788, allocations: 204.4 kB / 0.4944 GB, free: 6.473 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.093e-05/0.5788, allocations: 0 / 0.4944 GB, free: 6.473 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004088/0.5793, allocations: 35.91 kB / 0.4944 GB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.5794, allocations: 48.48 kB / 0.4945 GB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/0.5795, allocations: 19.94 kB / 0.4945 GB, free: 6.371 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004668/0.5799, allocations: 322.9 kB / 0.4948 GB, free: 6.059 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.58, allocations: 0 / 0.4948 GB, free: 6.059 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008636/0.5808, allocations: 211.7 kB / 0.495 GB, free: 5.852 MB / 378.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.002269/0.5831, allocations: 1.498 MB / 0.4965 GB, free: 4.312 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001592/0.5847, allocations: 0.8651 MB / 0.4973 GB, free: 3.406 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.5847, allocations: 4.25 kB / 0.4973 GB, free: 3.402 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007563/0.5855, allocations: 485.4 kB / 0.4978 GB, free: 2.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007736/0.5863, allocations: 162.5 kB / 0.4979 GB, free: 2.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/0.5883, allocations: 0.9597 MB / 0.4989 GB, free: 1.754 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004888/0.5888, allocations: 0.8996 MB / 0.4998 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003178/0.5892, allocations: 72.89 kB / 0.4998 GB, free: 0.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003066/0.5895, allocations: 227.4 kB / 0.5 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of SimCode: time 8.61e-07/0.5895, allocations: 0 / 0.5 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04111/0.6306, allocations: 16.1 MB / 0.5158 GB, free: 0.625 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001558/0.6308, allocations: 144.7 kB / 0.5159 GB, free: 440 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.543/3.174, allocations: 0 / 0.5159 GB, free: 440 kB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat