Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001506, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008313/0.0008313, allocations: 95.88 kB / 286.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.499e-05/2.5e-05, allocations: 3.984 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1199, allocations: 51.48 MB / 395.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4145/0.5344, allocations: 83.41 MB / 478.7 MB, free: 9.395 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/0.5348, allocations: 75.97 kB / 478.8 MB, free: 9.367 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03845/0.5733, allocations: 15.51 MB / 494.3 MB, free: 12.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5733, allocations: 1.688 kB / 494.3 MB, free: 12.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.504e-05/0.5734, allocations: 15.98 kB / 494.3 MB, free: 12.94 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.001935/0.5753, allocations: 0.9775 MB / 495.3 MB, free: 11.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.5754, allocations: 15.97 kB / 495.3 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000187/0.5756, allocations: 98.88 kB / 495.4 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007473/0.5763, allocations: 472.5 kB / 495.8 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00021/0.5766, allocations: 84.7 kB / 495.9 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.236e-05/0.5767, allocations: 31.61 kB / 495.9 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007354/0.5774, allocations: 418.8 kB / 496.4 MB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.5785, allocations: 0.655 MB / 497 MB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.5786, allocations: 3.906 kB / 497 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.291e-05/0.5786, allocations: 4 kB / 497 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.037e-05/0.5787, allocations: 12 kB / 497 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00345/0.5821, allocations: 1.948 MB / 499 MB, free: 8.848 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008978/0.583, allocations: 467.9 kB / 499.4 MB, free: 8.535 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003154/0.5833, allocations: 215.7 kB / 499.6 MB, free: 8.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.693e-05/0.5834, allocations: 20.95 kB / 499.7 MB, free: 8.391 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004819/0.5839, allocations: 281.2 kB / 499.9 MB, free: 8.184 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.945e-06/0.5839, allocations: 0 / 499.9 MB, free: 8.184 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.001756/0.5857, allocations: 0.6983 MB / 0.4889 GB, free: 7.633 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005005/0.5862, allocations: 0.8263 MB / 0.4897 GB, free: 6.613 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006049/0.5868, allocations: 452.7 kB / 0.4901 GB, free: 6.273 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.501e-05/0.5869, allocations: 29.7 kB / 0.4902 GB, free: 6.238 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002682/0.5872, allocations: 334.9 kB / 0.4905 GB, free: 6.023 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000162/0.5873, allocations: 193.5 kB / 0.4907 GB, free: 5.855 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.987e-05/0.5874, allocations: 0 / 0.4907 GB, free: 5.855 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002069/0.5876, allocations: 372 kB / 0.491 GB, free: 5.508 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002761/0.5879, allocations: 172.4 kB / 0.4912 GB, free: 5.406 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005984/0.5885, allocations: 464.6 kB / 0.4916 GB, free: 4.938 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003449/0.5888, allocations: 208.1 kB / 0.4918 GB, free: 4.805 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.5888, allocations: 0 / 0.4918 GB, free: 4.805 MB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001717/0.5906, allocations: 0.7743 MB / 0.4926 GB, free: 4.195 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.032e-05/0.5907, allocations: 67.34 kB / 0.4927 GB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.5907, allocations: 0 / 0.4927 GB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007716/0.5915, allocations: 203.1 kB / 0.4928 GB, free: 3.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00069/0.5922, allocations: 135.7 kB / 0.493 GB, free: 3.836 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00542/0.5976, allocations: 3.956 MB / 0.4968 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007453/0.5984, allocations: 85.89 kB / 0.4969 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.857e-05/0.5984, allocations: 23.98 kB / 0.4969 GB, free: 15.77 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.0002825/0.5987, allocations: 133.9 kB / 0.4971 GB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001659/0.6004, allocations: 0.7065 MB / 0.4978 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.6005, allocations: 83.05 kB / 0.4978 GB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002161/0.6007, allocations: 70.88 kB / 0.4979 GB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.6008, allocations: 8 kB / 0.4979 GB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.6008, allocations: 0 / 0.4979 GB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001518/0.6023, allocations: 0.9645 MB / 0.4989 GB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/0.6046, allocations: 1.398 MB / 0.5002 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.6046, allocations: 4 kB / 0.5002 GB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006713/0.6053, allocations: 119.8 kB / 0.5003 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004442/0.6058, allocations: 141.6 kB / 0.5005 GB, free: 11.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.534e-05/0.6058, allocations: 7.984 kB / 0.5005 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004013/0.6098, allocations: 3.378 MB / 0.5038 GB, free: 8.328 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.6099, allocations: 240 / 0.5038 GB, free: 8.328 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.6115, allocations: 0.8942 MB / 0.5047 GB, free: 7.414 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003767/0.6119, allocations: 212.1 kB / 0.5049 GB, free: 7.188 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.373e-05/0.612, allocations: 7.953 kB / 0.5049 GB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004678/0.6125, allocations: 44.02 kB / 0.5049 GB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.6127, allocations: 48.48 kB / 0.505 GB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.142e-05/0.6127, allocations: 19.98 kB / 0.505 GB, free: 7.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005133/0.6132, allocations: 346.9 kB / 0.5053 GB, free: 6.734 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6133, allocations: 0 / 0.5053 GB, free: 6.734 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001087/0.6143, allocations: 239.6 kB / 0.5055 GB, free: 6.5 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.001995/0.6164, allocations: 1.471 MB / 0.507 GB, free: 4.988 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001569/0.6179, allocations: 0.8792 MB / 0.5078 GB, free: 4.066 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.618, allocations: 4 kB / 0.5078 GB, free: 4.062 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006674/0.6186, allocations: 489 kB / 0.5083 GB, free: 3.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007966/0.6194, allocations: 174.8 kB / 0.5085 GB, free: 3.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002054/0.6215, allocations: 0.9172 MB / 0.5094 GB, free: 2.449 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005257/0.622, allocations: 0.9319 MB / 0.5103 GB, free: 1.492 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003429/0.6224, allocations: 73.03 kB / 0.5103 GB, free: 1.418 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003375/0.6227, allocations: 255.3 kB / 0.5106 GB, free: 1.168 MB / 378.7 MB Notification: Performance of SimCode: time 6.82e-07/0.6227, allocations: 0 / 0.5106 GB, free: 1.168 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04604/0.6688, allocations: 18.48 MB / 0.5286 GB, free: 14.99 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002137/0.6691, allocations: 132.9 kB / 0.5288 GB, free: 14.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.78/3.449, allocations: 0 / 0.5288 GB, free: 14.8 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat