Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_3_2_3_cpp_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.001522/0.001522, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.955/1.955, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001141/0.00114, allocations: 89.73 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003983/0.0003982, allocations: 8 kB / 327.1 MB, free: 136 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3522/0.3526, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1317/0.4844, allocations: 80.96 MB / 455.6 MB, free: 15.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002834/0.4847, allocations: 75.97 kB / 455.7 MB, free: 15.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04081/0.5255, allocations: 9.562 MB / 465.2 MB, free: 5.996 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.5256, allocations: 0 / 465.2 MB, free: 5.996 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.143e-05/0.5257, allocations: 8 kB / 465.2 MB, free: 5.988 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.001857/0.5275, allocations: 0.7648 MB / 466 MB, free: 5.164 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.5276, allocations: 8.031 kB / 466 MB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001986/0.5278, allocations: 79.47 kB / 466.1 MB, free: 5.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001592/0.528, allocations: 59.34 kB / 466.1 MB, free: 5.012 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008322/0.5288, allocations: 378.3 kB / 466.5 MB, free: 4.602 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.529, allocations: 66.66 kB / 466.6 MB, free: 4.531 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.28e-05/0.5291, allocations: 39.91 kB / 466.6 MB, free: 4.492 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/0.5302, allocations: 458.2 kB / 467.1 MB, free: 3.988 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.265e-05/0.5303, allocations: 0 / 467.1 MB, free: 3.988 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.269e-05/0.5304, allocations: 16 kB / 467.1 MB, free: 3.973 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.5304, allocations: 12 kB / 467.1 MB, free: 3.961 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009953/0.5314, allocations: 307.8 kB / 467.4 MB, free: 3.664 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003378/0.5348, allocations: 1.266 MB / 468.7 MB, free: 2.312 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001948/0.5368, allocations: 449.5 kB / 469.1 MB, free: 1.844 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.956e-05/0.5369, allocations: 8.281 kB / 469.1 MB, free: 1.836 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.7e-05/0.537, allocations: 38.84 kB / 469.1 MB, free: 1.789 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 2.484e-06/0.537, allocations: 3.938 kB / 469.1 MB, free: 1.785 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.001966/0.5389, allocations: 0.6176 MB / 469.8 MB, free: 1.121 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002295/0.5392, allocations: 448.9 kB / 470.2 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000756/0.54, allocations: 401.1 kB / 470.6 MB, free: 188 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.715e-05/0.54, allocations: 33.7 kB / 470.6 MB, free: 148 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002432/0.5403, allocations: 274.9 kB / 470.9 MB, free: 15.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.5405, allocations: 118.3 kB / 471 MB, free: 15.76 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.768e-05/0.5405, allocations: 12 kB / 471 MB, free: 15.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.5407, allocations: 318.8 kB / 471.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004432/0.5411, allocations: 115.9 kB / 471.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006063/0.5417, allocations: 258.3 kB / 471.7 MB, free: 15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005032/0.5423, allocations: 168 kB / 471.9 MB, free: 14.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.5423, allocations: 0 / 471.9 MB, free: 14.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001247/0.5436, allocations: 402.8 kB / 472.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.364e-05/0.5436, allocations: 38.58 kB / 472.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.5437, allocations: 3.984 kB / 472.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002392/0.5439, allocations: 45.7 kB / 472.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006262/0.5446, allocations: 71.89 kB / 472.4 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003466/0.548, allocations: 2.775 MB / 475.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006576/0.5487, allocations: 47.66 kB / 475.2 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.546e-05/0.5488, allocations: 12 kB / 475.2 MB, free: 11.16 MB / 362.7 MB 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 () * Number of clocked 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 {3 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003588/0.5492, allocations: 170.3 kB / 475.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.5493, allocations: 51.34 kB / 475.5 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00015/0.5495, allocations: 56.69 kB / 475.5 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/0.5495, allocations: 7.953 kB / 475.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.5495, allocations: 0 / 475.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001147/0.5507, allocations: 0.6648 MB / 476.2 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002226/0.5529, allocations: 0.9186 MB / 477.1 MB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.553, allocations: 8 kB / 477.1 MB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006899/0.5537, allocations: 75.84 kB / 477.2 MB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.184e-06/0.5537, allocations: 0 / 477.2 MB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.774e-05/0.5537, allocations: 12 kB / 477.2 MB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.5538, allocations: 0 / 477.2 MB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.5538, allocations: 0 / 477.2 MB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001533/0.5553, allocations: 0.5485 MB / 477.7 MB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000327/0.5557, allocations: 160.5 kB / 477.9 MB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.5558, allocations: 15.95 kB / 477.9 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004272/0.5562, allocations: 16 kB / 477.9 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.984e-05/0.5563, allocations: 24.03 kB / 478 MB, free: 8.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.841e-05/0.5563, allocations: 4 kB / 478 MB, free: 8.227 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005973/0.557, allocations: 323.1 kB / 478.3 MB, free: 7.914 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.557, allocations: 0 / 478.3 MB, free: 7.914 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007104/0.5577, allocations: 143.8 kB / 478.4 MB, free: 7.773 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 () * Number of clocked 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.001969/0.5597, allocations: 1.091 MB / 479.5 MB, free: 6.656 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0015/0.5612, allocations: 0.5792 MB / 480.1 MB, free: 6.039 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.5612, allocations: 0 / 480.1 MB, free: 6.039 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004463/0.5617, allocations: 147.6 kB / 480.2 MB, free: 5.895 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.5627, allocations: 124.3 kB / 480.4 MB, free: 5.777 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003485/0.5663, allocations: 1.606 MB / 482 MB, free: 4.105 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004832/0.5668, allocations: 0.8354 MB / 482.8 MB, free: 3.242 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004314/0.5672, allocations: 167.3 kB / 483 MB, free: 3.078 MB / 362.7 MB Notification: Performance of SimCode: time 8.41e-07/0.5673, allocations: 0 / 483 MB, free: 3.078 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.799/3.366, allocations: 9.773 MB / 492.7 MB, free: 9.324 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat does not exist to compare? outputFormat=mat