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.001539/0.001539, allocations: 171.6 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.359/1.359, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0008422/0.000842, allocations: 86.73 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.267e-05/2.269e-05, allocations: 8 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08525/0.08529, allocations: 47.57 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3114/0.3967, allocations: 84.11 MB / 454.2 MB, free: 9.191 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.397, allocations: 77.27 kB / 454.3 MB, free: 9.152 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04045/0.4375, allocations: 15.82 MB / 470.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.4375, allocations: 3.984 kB / 470.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.607e-05/0.4376, allocations: 19.98 kB / 470.2 MB, free: 10.66 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.001648/0.4392, allocations: 0.9612 MB / 471.1 MB, free: 9.641 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/0.4393, allocations: 8.031 kB / 471.1 MB, free: 9.633 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001546/0.4395, allocations: 111.6 kB / 471.2 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.4396, allocations: 98.88 kB / 471.3 MB, free: 9.418 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007072/0.4403, allocations: 474.6 kB / 471.8 MB, free: 8.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/0.4405, allocations: 116.7 kB / 471.9 MB, free: 8.781 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.428e-05/0.4406, allocations: 52 kB / 472 MB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.4417, allocations: 0.7509 MB / 472.7 MB, free: 7.875 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.4417, allocations: 0 / 472.7 MB, free: 7.875 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.407e-05/0.4418, allocations: 28 kB / 472.7 MB, free: 7.848 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-05/0.4418, allocations: 12 kB / 472.7 MB, free: 7.836 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007541/0.4426, allocations: 449.1 kB / 473.2 MB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003198/0.4458, allocations: 2.064 MB / 475.3 MB, free: 5.246 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009141/0.4467, allocations: 0.4962 MB / 475.7 MB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003468/0.4471, allocations: 234.5 kB / 476 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.054e-05/0.4471, allocations: 17.64 kB / 476 MB, free: 4.488 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004666/0.4476, allocations: 291 kB / 476.3 MB, free: 4.195 MB / 346.7 MB Notification: Performance of pre-optimization done (n=59): time 1.974e-06/0.4476, allocations: 0 / 476.3 MB, free: 4.195 MB / 346.7 MB Notification: Performance of matching and sorting (n=59): time 0.001742/0.4494, allocations: 0.7572 MB / 477 MB, free: 3.426 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003106/0.4497, allocations: 0.8233 MB / 477.9 MB, free: 2.402 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005785/0.4503, allocations: 0.5035 MB / 478.4 MB, free: 1.891 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.697e-05/0.4503, allocations: 45.69 kB / 478.4 MB, free: 1.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002464/0.4506, allocations: 336.8 kB / 478.7 MB, free: 1.508 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.4507, allocations: 201 kB / 478.9 MB, free: 1.309 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/0.4508, allocations: 16 kB / 478.9 MB, free: 1.293 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.4509, allocations: 370.8 kB / 479.3 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003119/0.4513, allocations: 181.5 kB / 479.5 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000526/0.4518, allocations: 487.6 kB / 480 MB, free: 144 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003957/0.4522, allocations: 284.9 kB / 480.2 MB, free: 15.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.4522, allocations: 0 / 480.2 MB, free: 15.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001821/0.454, allocations: 0.8856 MB / 481.1 MB, free: 14.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.064e-05/0.4541, allocations: 55.41 kB / 481.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.4541, allocations: 4 kB / 481.2 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007015/0.4548, allocations: 217.5 kB / 481.4 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006473/0.4555, allocations: 127.8 kB / 481.5 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004993/0.4605, allocations: 4.094 MB / 485.6 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007656/0.4613, allocations: 91.52 kB / 485.7 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.479e-05/0.4613, allocations: 27.92 kB / 485.7 MB, free: 10.04 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.0002039/0.4615, allocations: 155 kB / 485.9 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.4617, allocations: 75.16 kB / 486 MB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002071/0.4619, allocations: 82.86 kB / 486 MB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.4619, allocations: 7.953 kB / 486 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.4619, allocations: 4 kB / 486 MB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001656/0.4636, allocations: 0.9997 MB / 487 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002331/0.4659, allocations: 1.506 MB / 488.6 MB, free: 7.031 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.4659, allocations: 0 / 488.6 MB, free: 7.031 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006294/0.4666, allocations: 123.8 kB / 488.7 MB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004333/0.467, allocations: 157.5 kB / 488.8 MB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.137e-05/0.4671, allocations: 15.98 kB / 488.8 MB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003837/0.4709, allocations: 3.511 MB / 492.4 MB, free: 2.953 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4709, allocations: 3.938 kB / 492.4 MB, free: 2.949 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001553/0.4725, allocations: 0.9335 MB / 493.3 MB, free: 1.988 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000335/0.4728, allocations: 223.9 kB / 493.5 MB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.473, allocations: 12 kB / 493.5 MB, free: 1.738 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004843/0.4735, allocations: 52.03 kB / 493.6 MB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/0.4736, allocations: 64.45 kB / 493.6 MB, free: 1.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.033e-05/0.4737, allocations: 19.98 kB / 493.7 MB, free: 1.605 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005099/0.4742, allocations: 407.2 kB / 494.1 MB, free: 1.215 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4742, allocations: 0 / 494.1 MB, free: 1.215 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008063/0.475, allocations: 271.7 kB / 494.3 MB, free: 0.9492 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.001793/0.4768, allocations: 1.522 MB / 495.8 MB, free: 15.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001499/0.4783, allocations: 0.9416 MB / 496.8 MB, free: 14.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4783, allocations: 0 / 496.8 MB, free: 14.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006672/0.479, allocations: 0.5041 MB / 497.3 MB, free: 13.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007513/0.4798, allocations: 191.1 kB / 497.5 MB, free: 13.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.4817, allocations: 0.9838 MB / 498.5 MB, free: 12.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00044/0.4821, allocations: 0.9356 MB / 499.4 MB, free: 11.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00032/0.4825, allocations: 77.2 kB / 499.5 MB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003204/0.4828, allocations: 259.3 kB / 499.7 MB, free: 11.37 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.4828, allocations: 0 / 499.7 MB, free: 11.37 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03653/0.5193, allocations: 20.54 MB / 0.5081 GB, free: 6.801 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001966/0.5196, allocations: 182.1 kB / 0.5082 GB, free: 6.574 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.524/3.044, allocations: 0 / 0.5082 GB, free: 6.574 MB / 394.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