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.001113/0.001113, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.368/1.368, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008804/0.0008803, allocations: 102 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002632/0.0002629, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.239, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09826/0.3373, allocations: 84.22 MB / 460.1 MB, free: 12.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.3375, allocations: 79.95 kB / 460.2 MB, free: 12.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04125/0.3788, allocations: 15.83 MB / 476 MB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3789, allocations: 0 / 476 MB, free: 12.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.822e-05/0.3789, allocations: 20 kB / 476.1 MB, free: 12.39 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.002045/0.381, allocations: 1.089 MB / 477.1 MB, free: 11.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.559e-05/0.381, allocations: 8.031 kB / 477.2 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001826/0.3812, allocations: 115.7 kB / 477.3 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001572/0.3814, allocations: 94.97 kB / 477.4 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006938/0.3821, allocations: 474.6 kB / 477.8 MB, free: 10.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001632/0.3823, allocations: 108.7 kB / 477.9 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.3e-05/0.3824, allocations: 55.94 kB / 478 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.3837, allocations: 0.8221 MB / 478.8 MB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.3837, allocations: 0 / 478.8 MB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.982e-05/0.3838, allocations: 32 kB / 478.8 MB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.3838, allocations: 12 kB / 478.8 MB, free: 9.367 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.3851, allocations: 0.5477 MB / 479.4 MB, free: 8.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00338/0.3884, allocations: 2.076 MB / 481.5 MB, free: 6.652 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/0.39, allocations: 0.6201 MB / 482.1 MB, free: 6.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.936e-05/0.3901, allocations: 8.625 kB / 482.1 MB, free: 6.012 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007883/0.3909, allocations: 355 kB / 482.4 MB, free: 5.648 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.484e-06/0.3909, allocations: 0 / 482.4 MB, free: 5.648 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.00531/0.3962, allocations: 1.67 MB / 484.1 MB, free: 3.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004404/0.3966, allocations: 0.8311 MB / 484.9 MB, free: 2.902 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007142/0.3974, allocations: 0.5151 MB / 485.5 MB, free: 2.379 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.402e-05/0.3975, allocations: 49.7 kB / 485.5 MB, free: 2.324 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002488/0.3977, allocations: 336.7 kB / 485.8 MB, free: 1.992 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/0.3979, allocations: 193.1 kB / 486 MB, free: 1.801 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.454e-05/0.3979, allocations: 16 kB / 486 MB, free: 1.785 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3981, allocations: 378.8 kB / 486.4 MB, free: 1.406 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005776/0.3987, allocations: 245.1 kB / 486.7 MB, free: 1.164 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008124/0.3995, allocations: 0.5373 MB / 487.2 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006782/0.4002, allocations: 330.3 kB / 487.5 MB, free: 176 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.4002, allocations: 0 / 487.5 MB, free: 176 kB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002329/0.4025, allocations: 0.9754 MB / 488.5 MB, free: 15.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.963e-05/0.4026, allocations: 59.41 kB / 488.5 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.4026, allocations: 4 kB / 488.6 MB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006838/0.4033, allocations: 229.6 kB / 488.8 MB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006833/0.404, allocations: 131.7 kB / 488.9 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006269/0.4103, allocations: 4.338 MB / 493.2 MB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007579/0.4111, allocations: 83.5 kB / 493.3 MB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.191e-05/0.4111, allocations: 27.98 kB / 493.4 MB, free: 10.03 MB / 378.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 () * Number of clocked 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.0003889/0.4115, allocations: 209.8 kB / 493.6 MB, free: 9.812 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.4117, allocations: 87.02 kB / 493.6 MB, free: 9.727 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001484/0.4118, allocations: 86.84 kB / 493.7 MB, free: 9.637 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.4118, allocations: 4 kB / 493.7 MB, free: 9.633 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.4118, allocations: 4 kB / 493.7 MB, free: 9.629 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002197/0.4141, allocations: 1.125 MB / 494.9 MB, free: 8.391 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002766/0.4168, allocations: 1.623 MB / 496.5 MB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.4168, allocations: 0 / 496.5 MB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006994/0.4176, allocations: 127.8 kB / 496.6 MB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005415/0.4181, allocations: 177.6 kB / 496.8 MB, free: 6.387 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.803e-05/0.4182, allocations: 15.92 kB / 496.8 MB, free: 6.371 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004713/0.4229, allocations: 3.717 MB / 0.4888 GB, free: 2.387 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4229, allocations: 8.109 kB / 0.4888 GB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.4253, allocations: 1.124 MB / 0.4899 GB, free: 1.234 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003629/0.4257, allocations: 220 kB / 0.4901 GB, free: 1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.298e-05/0.4258, allocations: 12 kB / 0.4901 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004771/0.4263, allocations: 59.94 kB / 0.4902 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.4264, allocations: 52.48 kB / 0.4902 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.286e-05/0.4265, allocations: 24.05 kB / 0.4902 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006091/0.4271, allocations: 411.1 kB / 0.4906 GB, free: 472 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4271, allocations: 0 / 0.4906 GB, free: 472 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008635/0.428, allocations: 275.6 kB / 0.4909 GB, free: 196 kB / 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) * Number of clocked states: 0 () * 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.2014/0.6294, allocations: 1.697 MB / 0.4926 GB, free: 105.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002565/0.632, allocations: 1.063 MB / 0.4936 GB, free: 105 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.632, allocations: 2.188 kB / 0.4936 GB, free: 105 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.6331, allocations: 0.5729 MB / 0.4942 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.6341, allocations: 184.1 kB / 0.4943 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00378/0.6379, allocations: 3.378 MB / 0.4976 GB, free: 102.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005457/0.6384, allocations: 0.9418 MB / 0.4985 GB, free: 101.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004277/0.6389, allocations: 75.47 kB / 0.4986 GB, free: 101.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003425/0.6392, allocations: 260.9 kB / 0.4989 GB, free: 101.7 MB / 378.7 MB Notification: Performance of SimCode: time 2.034e-06/0.6392, allocations: 0 / 0.4989 GB, free: 101.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03694/0.6762, allocations: 20.35 MB / 0.5187 GB, free: 93.51 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001399/0.6764, allocations: 207.9 kB / 0.5189 GB, free: 93.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.651/3.327, allocations: 0 / 0.5189 GB, free: 93.27 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