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.001378/0.001378, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 227.2 MB / 245 MB, free: 7.641 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008897/0.0008897, allocations: 96.33 kB / 297.2 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000233/0.0002329, allocations: 4 kB / 358 MB, free: 9.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2445, allocations: 51.48 MB / 409.5 MB, free: 26.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1082/0.3527, allocations: 84.15 MB / 493.6 MB, free: 6.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/0.3531, allocations: 79.97 kB / 493.7 MB, free: 6.242 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03955/0.3926, allocations: 15.72 MB / 0.4975 GB, free: 6.414 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.3927, allocations: 0 / 0.4975 GB, free: 6.414 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.782e-05/0.3927, allocations: 15.94 kB / 0.4975 GB, free: 6.398 MB / 378.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.002034/0.3948, allocations: 1.1 MB / 0.4986 GB, free: 5.234 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.3948, allocations: 8.031 kB / 0.4986 GB, free: 5.227 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001683/0.395, allocations: 111.7 kB / 0.4987 GB, free: 5.105 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/0.3952, allocations: 98.97 kB / 0.4988 GB, free: 5.008 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006765/0.3958, allocations: 494.4 kB / 0.4993 GB, free: 4.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/0.396, allocations: 108.7 kB / 0.4994 GB, free: 4.363 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.361e-05/0.3961, allocations: 52 kB / 0.4994 GB, free: 4.312 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.3974, allocations: 0.8127 MB / 0.5002 GB, free: 3.395 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.3974, allocations: 4 kB / 0.5002 GB, free: 3.391 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-05/0.3975, allocations: 28 kB / 0.5002 GB, free: 3.363 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.3975, allocations: 12 kB / 0.5003 GB, free: 3.352 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001234/0.3988, allocations: 0.5594 MB / 0.5008 GB, free: 2.793 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003344/0.4021, allocations: 2.049 MB / 0.5028 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.4036, allocations: 0.6229 MB / 0.5034 GB, free: 8 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2127/0.6163, allocations: 14.31 kB / 0.5034 GB, free: 90.26 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001204/0.6176, allocations: 352.2 kB / 0.5038 GB, free: 90.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 3.747e-06/0.6176, allocations: 0 / 0.5038 GB, free: 90.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.006052/0.6236, allocations: 1.674 MB / 0.5054 GB, free: 89.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002185/0.6239, allocations: 0.8255 MB / 0.5062 GB, free: 88.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007765/0.6247, allocations: 0.5162 MB / 0.5067 GB, free: 88.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.571e-05/0.6247, allocations: 45.3 kB / 0.5068 GB, free: 88.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002706/0.625, allocations: 333.2 kB / 0.5071 GB, free: 88.69 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/0.6252, allocations: 198.3 kB / 0.5073 GB, free: 88.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-05/0.6253, allocations: 11.62 kB / 0.5073 GB, free: 88.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.6254, allocations: 380 kB / 0.5076 GB, free: 88.28 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005974/0.626, allocations: 240.2 kB / 0.5079 GB, free: 88.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007912/0.6268, allocations: 0.534 MB / 0.5084 GB, free: 87.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000658/0.6275, allocations: 342.5 kB / 0.5087 GB, free: 87.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.6275, allocations: 1.781 kB / 0.5087 GB, free: 87.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002437/0.6299, allocations: 0.9683 MB / 0.5097 GB, free: 87.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.08e-05/0.63, allocations: 61.22 kB / 0.5097 GB, free: 87.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.63, allocations: 4.344 kB / 0.5097 GB, free: 87.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007976/0.6308, allocations: 236.4 kB / 0.5099 GB, free: 87.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007459/0.6316, allocations: 127.2 kB / 0.5101 GB, free: 87.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005533/0.6371, allocations: 4.344 MB / 0.5143 GB, free: 85.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007468/0.6379, allocations: 100.8 kB / 0.5144 GB, free: 84.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.146e-05/0.638, allocations: 25.41 kB / 0.5144 GB, free: 84.99 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.0003515/0.6383, allocations: 209.2 kB / 0.5146 GB, free: 84.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.49e-05/0.6384, allocations: 94.78 kB / 0.5147 GB, free: 84.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/0.6386, allocations: 74.45 kB / 0.5148 GB, free: 84.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.6386, allocations: 6 kB / 0.5148 GB, free: 84.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.6386, allocations: 3 kB / 0.5148 GB, free: 84.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00178/0.6404, allocations: 1.129 MB / 0.5159 GB, free: 84.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002265/0.6427, allocations: 1.625 MB / 0.5175 GB, free: 83.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.6427, allocations: 3.906 kB / 0.5175 GB, free: 83.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005899/0.6433, allocations: 125.1 kB / 0.5176 GB, free: 83.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004671/0.6437, allocations: 180.7 kB / 0.5178 GB, free: 83.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.503e-05/0.6438, allocations: 11.61 kB / 0.5178 GB, free: 83.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003875/0.6477, allocations: 3.713 MB / 0.5214 GB, free: 80.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.6477, allocations: 0 / 0.5214 GB, free: 80.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002254/0.65, allocations: 1.13 MB / 0.5225 GB, free: 79.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004227/0.6504, allocations: 209.5 kB / 0.5227 GB, free: 79.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001131/0.6505, allocations: 18.36 kB / 0.5227 GB, free: 79.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004547/0.651, allocations: 53.81 kB / 0.5228 GB, free: 79.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.6512, allocations: 52.14 kB / 0.5228 GB, free: 79.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.495e-05/0.6512, allocations: 18.27 kB / 0.5229 GB, free: 79.35 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004155/0.6516, allocations: 418.2 kB / 0.5233 GB, free: 79.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6516, allocations: 3.938 kB / 0.5233 GB, free: 79.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007758/0.6524, allocations: 270 kB / 0.5235 GB, free: 79.12 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) * 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.002306/0.6547, allocations: 1.706 MB / 0.5252 GB, free: 78.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001846/0.6566, allocations: 1.061 MB / 0.5262 GB, free: 77.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.6566, allocations: 3.812 kB / 0.5262 GB, free: 77.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007911/0.6574, allocations: 0.5769 MB / 0.5268 GB, free: 77.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007332/0.6581, allocations: 192.1 kB / 0.527 GB, free: 77.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002988/0.6611, allocations: 3.385 MB / 0.5303 GB, free: 74.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.6615, allocations: 0.9341 MB / 0.5312 GB, free: 73.71 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003364/0.6618, allocations: 78.36 kB / 0.5313 GB, free: 73.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002811/0.6621, allocations: 263 kB / 0.5315 GB, free: 73.51 MB / 378.7 MB Notification: Performance of SimCode: time 7.42e-07/0.6621, allocations: 0 / 0.5315 GB, free: 73.51 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03258/0.6947, allocations: 20.32 MB / 0.5514 GB, free: 55.43 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001553/0.6949, allocations: 220.2 kB / 0.5516 GB, free: 55.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.513/3.208, allocations: 0 / 0.5516 GB, free: 55.18 MB / 378.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