Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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.SimpleCooling,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00097/0.00097, allocations: 198.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.555/1.555, allocations: 225.6 MB / 234.8 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009868/0.0009869, allocations: 98.3 kB / 286.7 MB, free: 5.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.695e-05/1.691e-05, allocations: 0 / 343.8 MB, free: 8.219 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1216, allocations: 51.48 MB / 395.3 MB, free: 4.699 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4391/0.5607, allocations: 80.4 MB / 475.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/0.561, allocations: 76.14 kB / 475.7 MB, free: 11.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02136/0.5824, allocations: 9.349 MB / 485.1 MB, free: 5.254 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.5825, allocations: 0 / 485.1 MB, free: 5.254 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.164e-05/0.5825, allocations: 8 kB / 485.1 MB, free: 5.246 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0008378/0.5833, allocations: 0.6873 MB / 485.8 MB, free: 4.543 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.5834, allocations: 12.03 kB / 485.8 MB, free: 4.531 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.365e-05/0.5835, allocations: 63.34 kB / 485.9 MB, free: 4.469 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004414/0.5839, allocations: 364.1 kB / 486.2 MB, free: 4.117 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.44e-05/0.584, allocations: 58.08 kB / 486.3 MB, free: 4.059 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.547e-05/0.5841, allocations: 23.98 kB / 486.3 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003716/0.5845, allocations: 241.1 kB / 486.5 MB, free: 3.887 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004601/0.5849, allocations: 392 kB / 486.9 MB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.5849, allocations: 0 / 486.9 MB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.827e-05/0.585, allocations: 0 / 486.9 MB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.617e-06/0.585, allocations: 8 kB / 486.9 MB, free: 3.527 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.5865, allocations: 1.173 MB / 488.1 MB, free: 2.566 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008935/0.5874, allocations: 414.8 kB / 488.5 MB, free: 2.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/0.5876, allocations: 122.2 kB / 488.6 MB, free: 2.152 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.5877, allocations: 11.47 kB / 488.6 MB, free: 2.145 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.5877, allocations: 38.16 kB / 488.7 MB, free: 2.102 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 1.302e-06/0.5877, allocations: 0 / 488.7 MB, free: 2.102 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.0005428/0.5883, allocations: 318.3 kB / 489 MB, free: 1.852 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.5884, allocations: 448.6 kB / 489.4 MB, free: 1.312 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003125/0.5887, allocations: 336 kB / 489.7 MB, free: 1.051 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.5887, allocations: 25.7 kB / 489.8 MB, free: 1.02 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.5889, allocations: 232.4 kB / 490 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.279e-05/0.5889, allocations: 113 kB / 490.1 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.648e-05/0.589, allocations: 0 / 490.1 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.01e-05/0.589, allocations: 352.1 kB / 490.4 MB, free: 432 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.5892, allocations: 89.94 kB / 490.5 MB, free: 380 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.5894, allocations: 226.5 kB / 490.8 MB, free: 156 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001538/0.5895, allocations: 118.2 kB / 490.9 MB, free: 80 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.5895, allocations: 0 / 490.9 MB, free: 80 kB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000595/0.5901, allocations: 371 kB / 491.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.267e-05/0.5902, allocations: 33.69 kB / 491.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.5902, allocations: 1.688 kB / 491.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002699/0.5905, allocations: 67.86 kB / 491.3 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003145/0.5908, allocations: 79.64 kB / 491.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002223/0.593, allocations: 2.641 MB / 494.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002776/0.5933, allocations: 43.73 kB / 494.1 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.737e-05/0.5934, allocations: 11.12 kB / 494.1 MB, free: 12.86 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001831/0.5935, allocations: 122.9 kB / 494.2 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005297/0.5941, allocations: 313 kB / 494.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.462e-05/0.5942, allocations: 43.53 kB / 494.6 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.954e-05/0.5943, allocations: 50.06 kB / 494.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.5943, allocations: 4 kB / 494.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.5943, allocations: 3.984 kB / 494.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004725/0.5948, allocations: 0.6153 MB / 495.2 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.5958, allocations: 0.8017 MB / 496 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.5958, allocations: 5.969 kB / 496.1 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003423/0.5962, allocations: 71.39 kB / 496.1 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.5962, allocations: 8 kB / 496.1 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.227e-05/0.5962, allocations: 0 / 496.1 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.5962, allocations: 0 / 496.1 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.5963, allocations: 4 kB / 496.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005893/0.5968, allocations: 485.1 kB / 496.6 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001765/0.597, allocations: 159 kB / 496.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.908e-05/0.5971, allocations: 7.984 kB / 496.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.5973, allocations: 12.06 kB / 496.8 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.094e-05/0.5974, allocations: 19.91 kB / 496.8 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.5974, allocations: 10.06 kB / 496.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002809/0.5977, allocations: 262.7 kB / 497.1 MB, free: 10.22 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5977, allocations: 0 / 497.1 MB, free: 10.22 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004509/0.5982, allocations: 135.7 kB / 497.2 MB, free: 10.09 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009354/0.5991, allocations: 1.021 MB / 498.2 MB, free: 9.16 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008948/0.6, allocations: 0.5192 MB / 498.7 MB, free: 8.699 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.6, allocations: 0 / 498.7 MB, free: 8.699 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001883/0.6002, allocations: 120.3 kB / 498.9 MB, free: 8.617 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005374/0.6008, allocations: 110.7 kB / 499 MB, free: 8.535 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001473/0.6023, allocations: 0.6682 MB / 499.6 MB, free: 7.891 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/0.6027, allocations: 0.8276 MB / 0.4887 GB, free: 7.039 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002484/0.6029, allocations: 47.34 kB / 0.4888 GB, free: 6.992 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002187/0.6031, allocations: 154.8 kB / 0.4889 GB, free: 6.941 MB / 362.7 MB Notification: Performance of SimCode: time 6.31e-07/0.6032, allocations: 7.938 kB / 0.4889 GB, free: 6.934 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03362/0.6368, allocations: 9.921 MB / 0.4986 GB, free: 13.21 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003259/0.6372, allocations: 151.2 kB / 0.4988 GB, free: 13.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.245/2.882, allocations: 0 / 0.4988 GB, free: 13.02 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat does not exist to compare? outputFormat=mat