Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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.SimpleCooling,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",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.001103/0.001103, allocations: 177 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.602/1.602, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001082/0.001082, allocations: 82.38 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.558e-05/2.576e-05, allocations: 4 kB / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 47.59 MB / 363.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4411/0.5456, allocations: 80.45 MB / 443.6 MB, free: 14.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/0.546, allocations: 69.84 kB / 443.7 MB, free: 14.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0312/0.5773, allocations: 9.437 MB / 453.1 MB, free: 7.215 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.5773, allocations: 0 / 453.1 MB, free: 7.215 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.241e-05/0.5773, allocations: 8 kB / 453.1 MB, free: 7.207 MB / 330.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.001318/0.5787, allocations: 0.6916 MB / 453.8 MB, free: 6.492 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.531e-05/0.5787, allocations: 12.03 kB / 453.8 MB, free: 6.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001567/0.5789, allocations: 59.34 kB / 453.9 MB, free: 6.422 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007115/0.5796, allocations: 369.6 kB / 454.2 MB, free: 6.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.5798, allocations: 50.77 kB / 454.3 MB, free: 6.012 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.586e-05/0.5799, allocations: 23.95 kB / 454.3 MB, free: 5.988 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006316/0.5805, allocations: 246.6 kB / 454.6 MB, free: 5.836 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007423/0.5813, allocations: 391.8 kB / 454.9 MB, free: 5.48 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.5813, allocations: 0 / 454.9 MB, free: 5.48 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.06e-05/0.5813, allocations: 0 / 454.9 MB, free: 5.48 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.5814, allocations: 8 kB / 454.9 MB, free: 5.473 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002541/0.5839, allocations: 1.172 MB / 456.1 MB, free: 4.508 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.5852, allocations: 414.7 kB / 456.5 MB, free: 4.172 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002376/0.5855, allocations: 124.6 kB / 456.6 MB, free: 4.09 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.383e-05/0.5855, allocations: 7.781 kB / 456.7 MB, free: 4.086 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.366e-05/0.5856, allocations: 38.28 kB / 456.7 MB, free: 4.043 MB / 330.7 MB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.5856, allocations: 0 / 456.7 MB, free: 4.043 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.00088/0.5865, allocations: 323.7 kB / 457 MB, free: 3.789 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002267/0.5867, allocations: 441 kB / 457.4 MB, free: 3.254 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004858/0.5872, allocations: 334.1 kB / 457.8 MB, free: 2.996 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.54e-05/0.5873, allocations: 25.7 kB / 457.8 MB, free: 2.965 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002414/0.5875, allocations: 242.4 kB / 458 MB, free: 2.789 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.5876, allocations: 105.3 kB / 458.1 MB, free: 2.695 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.033e-05/0.5877, allocations: 0 / 458.1 MB, free: 2.695 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.5879, allocations: 349.1 kB / 458.5 MB, free: 2.363 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002197/0.5881, allocations: 94.8 kB / 458.6 MB, free: 2.309 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003519/0.5885, allocations: 231.3 kB / 458.8 MB, free: 2.086 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/0.5887, allocations: 114 kB / 458.9 MB, free: 2.016 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.5887, allocations: 0 / 458.9 MB, free: 2.016 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008213/0.5896, allocations: 370.8 kB / 459.3 MB, free: 1.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.424e-05/0.5896, allocations: 29.7 kB / 459.3 MB, free: 1.695 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.5896, allocations: 4.031 kB / 459.3 MB, free: 1.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004005/0.59, allocations: 71.41 kB / 459.4 MB, free: 1.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004381/0.5905, allocations: 67.28 kB / 459.4 MB, free: 1.566 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002968/0.5935, allocations: 2.658 MB / 462.1 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004568/0.594, allocations: 31.73 kB / 462.1 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.272e-05/0.594, allocations: 11 kB / 462.1 MB, free: 14.8 MB / 346.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.000229/0.5943, allocations: 124.9 kB / 462.3 MB, free: 14.67 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007376/0.595, allocations: 304.3 kB / 462.6 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.5951, allocations: 47.48 kB / 462.6 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000139/0.5953, allocations: 47.95 kB / 462.6 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.5953, allocations: 7.938 kB / 462.7 MB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-06/0.5953, allocations: 4 kB / 462.7 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007199/0.596, allocations: 0.6242 MB / 463.3 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001567/0.5976, allocations: 0.8105 MB / 464.1 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/0.5976, allocations: 0 / 464.1 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004793/0.5981, allocations: 71.28 kB / 464.2 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.016e-05/0.5981, allocations: 7.938 kB / 464.2 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3e-05/0.5982, allocations: 3.984 kB / 464.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.536e-06/0.5982, allocations: 8 kB / 464.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/0.5982, allocations: 4 kB / 464.2 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008862/0.5991, allocations: 489.2 kB / 464.7 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002682/0.5994, allocations: 153.2 kB / 464.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.074e-05/0.5995, allocations: 4 kB / 464.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003081/0.5998, allocations: 11.98 kB / 464.8 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.244e-05/0.5999, allocations: 20.03 kB / 464.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.772e-05/0.5999, allocations: 11.56 kB / 464.9 MB, free: 12.34 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004168/0.6003, allocations: 258.7 kB / 465.1 MB, free: 12.15 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6003, allocations: 0 / 465.1 MB, free: 12.15 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006948/0.601, allocations: 139.7 kB / 465.2 MB, free: 12.01 MB / 346.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.001377/0.6024, allocations: 1.017 MB / 466.3 MB, free: 11.08 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001315/0.6038, allocations: 0.5253 MB / 466.8 MB, free: 10.61 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/0.6038, allocations: 4 kB / 466.8 MB, free: 10.61 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002547/0.604, allocations: 111 kB / 466.9 MB, free: 10.54 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007837/0.6048, allocations: 109.6 kB / 467 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.6069, allocations: 0.6769 MB / 467.7 MB, free: 9.801 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005616/0.6074, allocations: 0.8237 MB / 468.5 MB, free: 8.949 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003162/0.6078, allocations: 51.33 kB / 468.6 MB, free: 8.895 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002667/0.6081, allocations: 149 kB / 468.7 MB, free: 8.852 MB / 346.7 MB Notification: Performance of SimCode: time 7.11e-07/0.6081, allocations: 0 / 468.7 MB, free: 8.852 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03982/0.6479, allocations: 9.927 MB / 478.6 MB, free: 14.92 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002802/0.6482, allocations: 145.3 kB / 478.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.442/3.09, allocations: 3.938 kB / 478.8 MB, free: 14.72 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat does not exist to compare? outputFormat=mat