Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.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.ParallelCooling,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_ParallelCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_ParallelCooling",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.002315/0.002315, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.097/2.097, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001127/0.001127, allocations: 93.44 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.094e-05/3.09e-05, allocations: 7.984 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3536/0.3536, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1383/0.492, allocations: 81.03 MB / 443.5 MB, free: 5.172 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003186/0.4924, allocations: 67.95 kB / 443.5 MB, free: 5.105 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.09846/0.5909, allocations: 16.02 MB / 459.5 MB, free: 5.059 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.5909, allocations: 0 / 459.5 MB, free: 5.059 MB / 347.1 MB Notification: Performance of Transformations before backend: time 0.0001125/0.5911, allocations: 23.94 kB / 459.6 MB, free: 5.035 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.004587/0.5957, allocations: 1.036 MB / 460.6 MB, free: 3.938 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.502e-05/0.5958, allocations: 12.03 kB / 460.6 MB, free: 3.926 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005279/0.5963, allocations: 110.9 kB / 460.7 MB, free: 3.816 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002201/0.5986, allocations: 0.5157 MB / 461.2 MB, free: 3.254 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000489/0.5991, allocations: 130.4 kB / 461.4 MB, free: 3.109 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002534/0.5994, allocations: 35.98 kB / 461.4 MB, free: 3.074 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00245/0.6018, allocations: 478.5 kB / 461.9 MB, free: 2.605 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/0.6036, allocations: 0.704 MB / 462.6 MB, free: 1.805 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.674e-05/0.6037, allocations: 0 / 462.6 MB, free: 1.805 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-05/0.6038, allocations: 7.938 kB / 462.6 MB, free: 1.797 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.773e-05/0.6039, allocations: 12 kB / 462.6 MB, free: 1.785 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006028/0.6099, allocations: 1.977 MB / 464.6 MB, free: 15.71 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002476/0.6124, allocations: 0.863 MB / 465.4 MB, free: 14.79 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008793/0.6134, allocations: 307.2 kB / 465.7 MB, free: 14.48 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.452e-05/0.6135, allocations: 20.75 kB / 465.8 MB, free: 14.47 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.872e-05/0.6136, allocations: 47.34 kB / 465.8 MB, free: 14.41 MB / 363.1 MB Notification: Performance of pre-optimization done (n=74): time 4.358e-06/0.6136, allocations: 3.938 kB / 465.8 MB, free: 14.41 MB / 363.1 MB Notification: Performance of matching and sorting (n=74): time 0.003821/0.6174, allocations: 0.8281 MB / 466.6 MB, free: 13.56 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005183/0.618, allocations: 0.8235 MB / 467.5 MB, free: 12.54 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/0.6191, allocations: 468.1 kB / 467.9 MB, free: 12.08 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002673/0.6194, allocations: 29.7 kB / 467.9 MB, free: 12.04 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003859/0.6198, allocations: 359.2 kB / 468.3 MB, free: 11.69 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000434/0.6202, allocations: 248.2 kB / 468.5 MB, free: 11.45 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.761e-05/0.6203, allocations: 4 kB / 468.5 MB, free: 11.44 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.6205, allocations: 343.6 kB / 468.9 MB, free: 11.1 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006163/0.6212, allocations: 197.6 kB / 469.1 MB, free: 10.9 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009604/0.6221, allocations: 461.9 kB / 469.5 MB, free: 10.35 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007989/0.623, allocations: 258.7 kB / 469.8 MB, free: 10.1 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.278e-06/0.623, allocations: 3.953 kB / 469.8 MB, free: 10.1 MB / 363.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00362/0.6266, allocations: 0.8389 MB / 470.6 MB, free: 9.238 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001031/0.6268, allocations: 89.09 kB / 470.7 MB, free: 9.133 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.6268, allocations: 0 / 470.7 MB, free: 9.133 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.6279, allocations: 215.2 kB / 470.9 MB, free: 8.91 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.6291, allocations: 131.8 kB / 471 MB, free: 8.781 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01021/0.6393, allocations: 6.039 MB / 477.1 MB, free: 2.281 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/0.6407, allocations: 87.48 kB / 477.2 MB, free: 2.195 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.233e-05/0.6408, allocations: 20 kB / 477.2 MB, free: 2.176 MB / 363.1 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: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.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: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 64 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 5,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003825/0.6412, allocations: 141.8 kB / 477.3 MB, free: 2.031 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003351/0.6446, allocations: 0.8188 MB / 478.1 MB, free: 1.191 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002496/0.6449, allocations: 79.06 kB / 478.2 MB, free: 1.113 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002737/0.6451, allocations: 79.78 kB / 478.3 MB, free: 1.031 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.6452, allocations: 8 kB / 478.3 MB, free: 1.023 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.6452, allocations: 0 / 478.3 MB, free: 1.023 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003216/0.6484, allocations: 1.127 MB / 479.4 MB, free: 15.79 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005516/0.654, allocations: 1.716 MB / 481.1 MB, free: 14.01 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.016e-06/0.654, allocations: 4.062 kB / 481.1 MB, free: 14 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001242/0.6553, allocations: 127.9 kB / 481.3 MB, free: 13.88 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007465/0.6561, allocations: 174.4 kB / 481.4 MB, free: 13.7 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.23e-05/0.6561, allocations: 4 kB / 481.4 MB, free: 13.7 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008426/0.6646, allocations: 4.657 MB / 486.1 MB, free: 8.695 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.6646, allocations: 288 / 486.1 MB, free: 8.695 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004175/0.6688, allocations: 1.238 MB / 487.3 MB, free: 7.414 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006551/0.6695, allocations: 228 kB / 487.6 MB, free: 7.172 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000159/0.6697, allocations: 4 kB / 487.6 MB, free: 7.168 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008335/0.6705, allocations: 40 kB / 487.6 MB, free: 7.129 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002801/0.6708, allocations: 64.64 kB / 487.7 MB, free: 7.062 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.698e-05/0.6709, allocations: 20 kB / 487.7 MB, free: 7.043 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.00074/0.6717, allocations: 374.9 kB / 488.1 MB, free: 6.68 MB / 379.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6717, allocations: 0 / 488.1 MB, free: 6.68 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001417/0.6731, allocations: 259.7 kB / 488.3 MB, free: 6.426 MB / 379.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004776/0.6779, allocations: 1.935 MB / 490.2 MB, free: 4.445 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.002935/0.6809, allocations: 1.171 MB / 491.4 MB, free: 3.195 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.681, allocations: 0 / 491.4 MB, free: 3.195 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001898/0.6829, allocations: 0.6838 MB / 492.1 MB, free: 2.484 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/0.6845, allocations: 192 kB / 492.3 MB, free: 2.305 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004632/0.6892, allocations: 1.341 MB / 493.6 MB, free: 0.9062 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007737/0.69, allocations: 0.952 MB / 494.6 MB, free: 15.93 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000724/0.6907, allocations: 295.3 kB / 494.9 MB, free: 15.64 MB / 395.1 MB Notification: Performance of SimCode: time 1.202e-06/0.6908, allocations: 0 / 494.9 MB, free: 15.64 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.38/4.071, allocations: 23.6 MB / 0.5063 GB, free: 118.2 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_ParallelCooling_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_ParallelCooling.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling_res.mat does not exist to compare? outputFormat=mat