Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.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.IndirectCooling,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",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.00111/0.00111, allocations: 177.2 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.799/1.799, allocations: 205.3 MB / 214.4 MB, free: 1.676 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.001085/0.001085, allocations: 94.3 kB / 262.5 MB, free: 1.621 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.183e-05/2.184e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1184, allocations: 47.59 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4359/0.5543, allocations: 81.49 MB / 444.7 MB, free: 14.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.5547, allocations: 73.27 kB / 444.7 MB, free: 14.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04971/0.6044, allocations: 19.18 MB / 463.9 MB, free: 14.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.6044, allocations: 0 / 463.9 MB, free: 14.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.468e-05/0.6045, allocations: 23.98 kB / 463.9 MB, free: 14.39 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.002162/0.6067, allocations: 1.157 MB / 465.1 MB, free: 13.23 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.307e-05/0.6068, allocations: 12.03 kB / 465.1 MB, free: 13.22 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002114/0.607, allocations: 122.7 kB / 465.2 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000974/0.608, allocations: 0.6003 MB / 465.8 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002185/0.6082, allocations: 127.1 kB / 465.9 MB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.749e-05/0.6083, allocations: 40 kB / 466 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009574/0.6093, allocations: 0.5255 MB / 466.5 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.6105, allocations: 0.8167 MB / 467.3 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.6105, allocations: 3.375 kB / 467.3 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.641e-05/0.6106, allocations: 0 / 467.3 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/0.6106, allocations: 19.98 kB / 467.3 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004061/0.6147, allocations: 2.42 MB / 469.8 MB, free: 9.344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002491/0.6172, allocations: 0.8412 MB / 470.6 MB, free: 8.707 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005485/0.6178, allocations: 315.6 kB / 470.9 MB, free: 8.508 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.353e-05/0.6178, allocations: 16.77 kB / 470.9 MB, free: 8.488 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.862e-05/0.6179, allocations: 50.45 kB / 471 MB, free: 8.441 MB / 346.7 MB Notification: Performance of pre-optimization done (n=74): time 4.088e-06/0.6179, allocations: 0 / 471 MB, free: 8.441 MB / 346.7 MB Notification: Performance of matching and sorting (n=74): time 0.001477/0.6194, allocations: 0.6725 MB / 471.7 MB, free: 7.914 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000549/0.62, allocations: 0.9523 MB / 472.6 MB, free: 6.734 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007722/0.6207, allocations: 0.5798 MB / 473.2 MB, free: 6.305 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.288e-05/0.6208, allocations: 33.62 kB / 473.2 MB, free: 6.266 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003123/0.6211, allocations: 416.3 kB / 473.6 MB, free: 6.004 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002165/0.6213, allocations: 242.6 kB / 473.9 MB, free: 5.793 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.696e-05/0.6214, allocations: 4 kB / 473.9 MB, free: 5.789 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.6216, allocations: 339.3 kB / 474.2 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000365/0.622, allocations: 210.4 kB / 474.4 MB, free: 5.348 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006761/0.6226, allocations: 0.5217 MB / 474.9 MB, free: 4.832 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000459/0.6231, allocations: 269.2 kB / 475.2 MB, free: 4.664 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.6231, allocations: 0 / 475.2 MB, free: 4.664 MB / 346.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00142/0.6245, allocations: 0.7925 MB / 476 MB, free: 3.926 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.309e-05/0.6246, allocations: 85.11 kB / 476.1 MB, free: 3.824 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.6246, allocations: 0 / 476.1 MB, free: 3.824 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005696/0.6252, allocations: 172.1 kB / 476.2 MB, free: 3.641 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007378/0.626, allocations: 163.8 kB / 476.4 MB, free: 3.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005985/0.632, allocations: 6.536 MB / 482.9 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009595/0.633, allocations: 79.39 kB / 483 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.405e-05/0.633, allocations: 28 kB / 483 MB, free: 12.26 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.H_flow:VARIABLE(flow=true unit = "W" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: outerPump.flowPort_b.H_flow:VARIABLE(flow=true unit = "W" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: absolutePressure.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: innerPipe.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: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 4 {1 3,1 1,1 3,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003384/0.6334, allocations: 144.8 kB / 483.2 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001304/0.6347, allocations: 0.6712 MB / 483.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/0.6348, allocations: 90.97 kB / 483.9 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002736/0.6351, allocations: 89 kB / 484 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.6351, allocations: 8 kB / 484 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.6351, allocations: 0 / 484 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001033/0.6362, allocations: 0.887 MB / 484.9 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002412/0.6386, allocations: 1.575 MB / 486.5 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-06/0.6386, allocations: 0 / 486.5 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007735/0.6394, allocations: 163.8 kB / 486.6 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001008/0.6395, allocations: 28.84 kB / 486.7 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/0.6396, allocations: 4 kB / 486.7 MB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009887/0.6406, allocations: 1.249 MB / 487.9 MB, free: 7.043 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/0.6406, allocations: 4.031 kB / 487.9 MB, free: 7.039 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.6421, allocations: 0.9555 MB / 488.9 MB, free: 6.062 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003939/0.6425, allocations: 247.7 kB / 489.1 MB, free: 5.801 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.6426, allocations: 7.984 kB / 489.1 MB, free: 5.793 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004742/0.6431, allocations: 32 kB / 489.2 MB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.6432, allocations: 44.72 kB / 489.2 MB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.373e-05/0.6432, allocations: 31.92 kB / 489.2 MB, free: 5.684 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006899/0.6439, allocations: 451.2 kB / 489.7 MB, free: 5.246 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.644, allocations: 0 / 489.7 MB, free: 5.246 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001057/0.645, allocations: 275.5 kB / 490 MB, free: 4.977 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (heatCapacitor.T,pipe1.T,outerPipe.T,innerPipe.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 71 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002124/0.6471, allocations: 1.531 MB / 491.5 MB, free: 3.414 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002549/0.6497, allocations: 1.297 MB / 492.8 MB, free: 2.031 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.6497, allocations: 4 kB / 492.8 MB, free: 2.027 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005202/0.6503, allocations: 376.6 kB / 493.2 MB, free: 1.648 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.6513, allocations: 225.3 kB / 493.4 MB, free: 1.434 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/0.6543, allocations: 1.36 MB / 494.7 MB, free: 24 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006256/0.6549, allocations: 0.9993 MB / 495.7 MB, free: 14.99 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005156/0.6554, allocations: 106.7 kB / 495.8 MB, free: 14.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004737/0.6559, allocations: 347.3 kB / 496.2 MB, free: 14.54 MB / 378.7 MB Notification: Performance of SimCode: time 4.1e-07/0.6559, allocations: 0 / 496.2 MB, free: 14.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05765/0.7136, allocations: 21.43 MB / 0.5055 GB, free: 9.082 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002204/0.7139, allocations: 151.8 kB / 0.5056 GB, free: 8.883 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.778/3.491, allocations: 4 kB / 0.5056 GB, free: 8.879 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.mat does not exist to compare? outputFormat=mat