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.001009/0.001009, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008001/0.0008001, allocations: 78.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.263e-05/3.266e-05, allocations: 3.984 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09324/0.09329, allocations: 47.57 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2782/0.3715, allocations: 81.93 MB / 452 MB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001571/0.3717, allocations: 62.41 kB / 452.1 MB, free: 11.36 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04893/0.4207, allocations: 19.42 MB / 471.5 MB, free: 9.277 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4207, allocations: 4 kB / 471.5 MB, free: 9.273 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.504e-05/0.4208, allocations: 24 kB / 471.5 MB, free: 9.25 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.001816/0.4226, allocations: 1.151 MB / 472.7 MB, free: 8.035 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.4226, allocations: 8.031 kB / 472.7 MB, free: 8.027 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001603/0.4228, allocations: 124.4 kB / 472.8 MB, free: 7.895 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.423, allocations: 122.7 kB / 472.9 MB, free: 7.773 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008473/0.4238, allocations: 0.5992 MB / 473.5 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/0.424, allocations: 159.1 kB / 473.7 MB, free: 6.961 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.652e-05/0.4241, allocations: 68 kB / 473.8 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.4254, allocations: 0.9316 MB / 474.7 MB, free: 5.844 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.4255, allocations: 3.984 kB / 474.7 MB, free: 5.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.885e-05/0.4255, allocations: 36 kB / 474.7 MB, free: 5.805 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.4256, allocations: 16 kB / 474.8 MB, free: 5.789 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009441/0.4265, allocations: 0.5624 MB / 475.3 MB, free: 5.227 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003764/0.4303, allocations: 2.602 MB / 477.9 MB, free: 2.488 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002434/0.4327, allocations: 0.8915 MB / 478.8 MB, free: 1.566 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005454/0.4333, allocations: 323.2 kB / 479.1 MB, free: 1.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.142e-05/0.4334, allocations: 16.75 kB / 479.1 MB, free: 1.234 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.483e-05/0.4334, allocations: 51.28 kB / 479.2 MB, free: 1.176 MB / 346.7 MB Notification: Performance of pre-optimization done (n=74): time 2.776e-06/0.4334, allocations: 0 / 479.2 MB, free: 1.176 MB / 346.7 MB Notification: Performance of matching and sorting (n=74): time 0.00137/0.4348, allocations: 0.7297 MB / 479.9 MB, free: 432 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004235/0.4352, allocations: 0.9567 MB / 480.9 MB, free: 15.24 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008465/0.4361, allocations: 0.6764 MB / 481.6 MB, free: 14.56 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.54e-05/0.4362, allocations: 45.7 kB / 481.6 MB, free: 14.51 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003121/0.4365, allocations: 412.5 kB / 482 MB, free: 14.1 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002152/0.4367, allocations: 264.1 kB / 482.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.824e-05/0.4367, allocations: 20 kB / 482.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.4369, allocations: 341.8 kB / 482.6 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004044/0.4373, allocations: 225.6 kB / 482.8 MB, free: 13.26 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006574/0.438, allocations: 0.5467 MB / 483.4 MB, free: 12.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005121/0.4385, allocations: 365.4 kB / 483.7 MB, free: 12.22 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.4385, allocations: 0 / 483.7 MB, free: 12.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001549/0.4401, allocations: 0.9301 MB / 484.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.661e-05/0.4401, allocations: 89.09 kB / 484.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.4401, allocations: 0 / 484.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00057/0.4407, allocations: 176.1 kB / 484.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007519/0.4415, allocations: 163.8 kB / 485.1 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005712/0.4472, allocations: 6.8 MB / 491.9 MB, free: 3.324 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.4483, allocations: 111.3 kB / 492 MB, free: 3.215 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.596e-05/0.4483, allocations: 31.98 kB / 492 MB, free: 3.184 MB / 362.7 MB 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.0002086/0.4486, allocations: 160.8 kB / 492.2 MB, free: 3.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.4487, allocations: 106.8 kB / 492.3 MB, free: 2.914 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002602/0.449, allocations: 101.6 kB / 492.4 MB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.449, allocations: 8 kB / 492.4 MB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.449, allocations: 0 / 492.4 MB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001151/0.4502, allocations: 0.9262 MB / 493.3 MB, free: 1.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002433/0.4526, allocations: 1.715 MB / 495 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.4526, allocations: 0 / 495 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007698/0.4534, allocations: 167.8 kB / 495.2 MB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.923e-05/0.4535, allocations: 32.73 kB / 495.2 MB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.247e-05/0.4536, allocations: 12 kB / 495.2 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008713/0.4544, allocations: 1.308 MB / 496.5 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4545, allocations: 0 / 496.5 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001521/0.456, allocations: 1.018 MB / 497.6 MB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000418/0.4564, allocations: 259.7 kB / 497.8 MB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.4565, allocations: 24 kB / 497.8 MB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004783/0.457, allocations: 39.98 kB / 497.9 MB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.607e-05/0.4571, allocations: 44.7 kB / 497.9 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.49e-05/0.4572, allocations: 20 kB / 497.9 MB, free: 12.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006702/0.4578, allocations: 0.5382 MB / 498.5 MB, free: 12.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4579, allocations: 0 / 498.5 MB, free: 12.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007573/0.4586, allocations: 307.5 kB / 498.8 MB, free: 12.05 MB / 378.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.001785/0.4604, allocations: 1.611 MB / 0.4887 GB, free: 10.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002304/0.4627, allocations: 1.363 MB / 0.49 GB, free: 8.945 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4627, allocations: 0 / 0.49 GB, free: 8.945 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005154/0.4633, allocations: 399 kB / 0.4904 GB, free: 8.543 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.4644, allocations: 256.7 kB / 0.4906 GB, free: 8.293 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002793/0.4672, allocations: 1.443 MB / 0.492 GB, free: 6.801 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005926/0.4678, allocations: 1.003 MB / 0.493 GB, free: 5.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004664/0.4683, allocations: 119.3 kB / 0.4931 GB, free: 5.648 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000467/0.4687, allocations: 359.3 kB / 0.4935 GB, free: 5.297 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.4687, allocations: 0 / 0.4935 GB, free: 5.297 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04329/0.512, allocations: 24 MB / 0.5169 GB, free: 13.25 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001611/0.5122, allocations: 187.9 kB / 0.5171 GB, free: 13.03 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.621/3.133, allocations: 0 / 0.5171 GB, free: 13.03 MB / 410.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