Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",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.001588/0.001588, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 221.4 MB / 235.5 MB, free: 2.957 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.0009124/0.0009124, allocations: 91.84 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.852e-05/2.854e-05, allocations: 0 / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.102, allocations: 50.43 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3361/0.4382, allocations: 83.29 MB / 477.6 MB, free: 4.195 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.4384, allocations: 79.94 kB / 477.7 MB, free: 4.117 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04275/0.4812, allocations: 15.66 MB / 493.4 MB, free: 4.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4812, allocations: 0 / 493.4 MB, free: 4.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.241e-05/0.4813, allocations: 16 kB / 493.4 MB, free: 4.324 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.001763/0.4831, allocations: 0.9767 MB / 494.4 MB, free: 3.289 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.55e-05/0.4831, allocations: 15.97 kB / 494.4 MB, free: 3.273 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001723/0.4833, allocations: 95.73 kB / 494.5 MB, free: 3.172 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001828/0.4835, allocations: 102.9 kB / 494.6 MB, free: 3.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007862/0.4843, allocations: 474.7 kB / 495 MB, free: 2.566 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.4845, allocations: 104.7 kB / 495.1 MB, free: 2.453 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.765e-05/0.4846, allocations: 55.91 kB / 495.2 MB, free: 2.398 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.4858, allocations: 0.7504 MB / 496 MB, free: 1.543 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.4858, allocations: 7.891 kB / 496 MB, free: 1.535 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.146e-05/0.4859, allocations: 24 kB / 496 MB, free: 1.512 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.4859, allocations: 12 kB / 496 MB, free: 1.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007877/0.4867, allocations: 449.1 kB / 496.4 MB, free: 1.062 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003462/0.4901, allocations: 2.069 MB / 498.5 MB, free: 14.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009943/0.4912, allocations: 498.3 kB / 499 MB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003789/0.4915, allocations: 238.5 kB / 499.2 MB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.31e-05/0.4916, allocations: 13.64 kB / 499.2 MB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005149/0.4921, allocations: 295.1 kB / 499.5 MB, free: 13.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 2.736e-06/0.4921, allocations: 0 / 499.5 MB, free: 13.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.00182/0.494, allocations: 0.7455 MB / 0.4885 GB, free: 13.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000395/0.4944, allocations: 0.8272 MB / 0.4894 GB, free: 12.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006648/0.4951, allocations: 0.5075 MB / 0.4898 GB, free: 11.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.82e-05/0.4951, allocations: 41.7 kB / 0.4899 GB, free: 11.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002924/0.4954, allocations: 336.7 kB / 0.4902 GB, free: 11.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001957/0.4956, allocations: 205 kB / 0.4904 GB, free: 10.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.585e-05/0.4957, allocations: 12 kB / 0.4904 GB, free: 10.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.4959, allocations: 382.7 kB / 0.4908 GB, free: 10.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003357/0.4962, allocations: 173.6 kB / 0.4909 GB, free: 10.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005964/0.4968, allocations: 499.7 kB / 0.4914 GB, free: 9.793 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004351/0.4972, allocations: 279.1 kB / 0.4917 GB, free: 9.512 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.4973, allocations: 3.984 kB / 0.4917 GB, free: 9.508 MB / 378.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001876/0.4991, allocations: 0.8817 MB / 0.4926 GB, free: 8.598 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.579e-05/0.4992, allocations: 63.41 kB / 0.4926 GB, free: 8.523 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.4992, allocations: 0 / 0.4926 GB, free: 8.523 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007137/0.4999, allocations: 218.8 kB / 0.4928 GB, free: 8.305 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006577/0.5006, allocations: 123.8 kB / 0.4929 GB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005359/0.506, allocations: 4.098 MB / 0.4969 GB, free: 3.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007328/0.5068, allocations: 99.36 kB / 0.497 GB, free: 3.711 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.986e-05/0.5068, allocations: 23.98 kB / 0.4971 GB, free: 3.688 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 () * 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.0001908/0.507, allocations: 152.9 kB / 0.4972 GB, free: 3.531 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.5071, allocations: 79.16 kB / 0.4973 GB, free: 3.453 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000191/0.5073, allocations: 78.84 kB / 0.4974 GB, free: 3.375 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.5073, allocations: 8 kB / 0.4974 GB, free: 3.367 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.5074, allocations: 0 / 0.4974 GB, free: 3.367 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001585/0.509, allocations: 1.011 MB / 0.4984 GB, free: 2.242 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00232/0.5113, allocations: 1.49 MB / 0.4998 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.5113, allocations: 7.938 kB / 0.4998 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006517/0.512, allocations: 119.8 kB / 0.4999 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004351/0.5124, allocations: 153.5 kB / 0.5001 GB, free: 412 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.048e-05/0.5125, allocations: 15.98 kB / 0.5001 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003949/0.5164, allocations: 3.511 MB / 0.5035 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.5164, allocations: 0 / 0.5035 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.5181, allocations: 0.9414 MB / 0.5044 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003756/0.5185, allocations: 216 kB / 0.5046 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.368e-05/0.5186, allocations: 16 kB / 0.5047 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004807/0.5191, allocations: 56.02 kB / 0.5047 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.5193, allocations: 60.38 kB / 0.5048 GB, free: 11.28 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.976e-05/0.5193, allocations: 15.98 kB / 0.5048 GB, free: 11.26 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005539/0.5199, allocations: 407.2 kB / 0.5052 GB, free: 10.87 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5199, allocations: 0 / 0.5052 GB, free: 10.87 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008258/0.5207, allocations: 263.7 kB / 0.5054 GB, free: 10.61 MB / 394.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.001958/0.5227, allocations: 1.529 MB / 0.5069 GB, free: 9.051 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00166/0.5244, allocations: 0.9412 MB / 0.5078 GB, free: 8.059 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.5244, allocations: 0 / 0.5078 GB, free: 8.059 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007099/0.5251, allocations: 0.508 MB / 0.5083 GB, free: 7.527 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009395/0.5261, allocations: 192.6 kB / 0.5085 GB, free: 7.336 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002506/0.5286, allocations: 0.9838 MB / 0.5095 GB, free: 6.312 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005905/0.5292, allocations: 0.9395 MB / 0.5104 GB, free: 5.344 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003721/0.5296, allocations: 81.19 kB / 0.5105 GB, free: 5.266 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003421/0.5299, allocations: 259.3 kB / 0.5107 GB, free: 5.016 MB / 394.7 MB Notification: Performance of SimCode: time 9.52e-07/0.5299, allocations: 0 / 0.5107 GB, free: 5.016 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04346/0.5734, allocations: 20.51 MB / 0.5308 GB, free: 0.8281 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002722/0.5737, allocations: 178.8 kB / 0.5309 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.704/3.277, allocations: 0 / 0.5309 GB, free: 0.6055 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat