Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.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.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystem",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.002465/0.002465, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.022/2.022, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001124/0.001124, allocations: 86.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.105e-05/3.116e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.0954, allocations: 47.58 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.41/9.505, allocations: 3.154 GB / 3.515 GB, free: 80.95 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/9.505, allocations: 76.09 kB / 3.515 GB, free: 80.92 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 13.98/23.48, allocations: 3.097 GB / 6.612 GB, free: 25.73 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.194e-06/23.48, allocations: 4 kB / 6.612 GB, free: 25.73 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000335/23.48, allocations: 67.53 kB / 6.612 GB, free: 25.66 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01726/23.5, allocations: 3.588 MB / 6.616 GB, free: 22.44 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/23.5, allocations: 12.03 kB / 6.616 GB, free: 22.43 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001707/23.5, allocations: 344.4 kB / 6.616 GB, free: 22.14 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002365/23.51, allocations: 311.3 kB / 6.616 GB, free: 21.83 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008658/23.51, allocations: 2.018 MB / 6.618 GB, free: 20.14 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003197/23.51, allocations: 218.2 kB / 6.618 GB, free: 19.92 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001097/23.52, allocations: 207.5 kB / 6.619 GB, free: 19.72 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009339/23.53, allocations: 3.317 MB / 6.622 GB, free: 16.75 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001059/23.53, allocations: 7.938 kB / 6.622 GB, free: 16.75 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004647/23.53, allocations: 83.97 kB / 6.622 GB, free: 16.66 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003686/23.53, allocations: 205.2 kB / 6.622 GB, free: 16.5 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009205/23.54, allocations: 3.027 MB / 6.625 GB, free: 13.8 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03365/23.57, allocations: 12.44 MB / 6.637 GB, free: 2.531 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006522/23.58, allocations: 2.202 MB / 6.639 GB, free: 304 kB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004204/23.58, allocations: 1.33 MB / 6.641 GB, free: 14.96 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01794/23.6, allocations: 5.992 MB / 6.646 GB, free: 8.473 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.274e-05/23.6, allocations: 52.56 kB / 6.647 GB, free: 8.414 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001734/23.6, allocations: 194 kB / 6.647 GB, free: 8.223 MB / 474.7 MB Notification: Performance of pre-optimization done (n=172): time 7.344e-06/23.6, allocations: 3.938 kB / 6.647 GB, free: 8.219 MB / 474.7 MB Notification: Performance of matching and sorting (n=198): time 0.03098/23.63, allocations: 7.252 MB / 6.654 GB, free: 0.918 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/23.63, allocations: 124.8 kB / 6.654 GB, free: 0.7695 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3816/24.01, allocations: 1.65 MB / 6.656 GB, free: 39.91 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006976/24.01, allocations: 62.7 kB / 6.656 GB, free: 39.88 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001182/24.01, allocations: 0.9722 MB / 6.657 GB, free: 39.72 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001405/24.02, allocations: 0.6848 MB / 6.657 GB, free: 39.43 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003745/24.02, allocations: 45.16 kB / 6.657 GB, free: 39.43 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000256/24.02, allocations: 403.5 kB / 6.658 GB, free: 39.12 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00403/24.02, allocations: 1.185 MB / 6.659 GB, free: 39.11 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004787/24.03, allocations: 1.695 MB / 6.66 GB, free: 38.55 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004735/24.03, allocations: 1.436 MB / 6.662 GB, free: 38.54 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.959e-05/24.03, allocations: 3.688 kB / 6.662 GB, free: 38.54 MB / 474.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01337/24.04, allocations: 4.014 MB / 6.666 GB, free: 38.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001285/24.05, allocations: 5.659 MB / 6.671 GB, free: 32.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.501e-05/24.05, allocations: 19.03 kB / 6.671 GB, free: 32.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02468/24.07, allocations: 3.556 MB / 6.675 GB, free: 32.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002657/24.07, allocations: 329.1 kB / 6.675 GB, free: 32.46 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01283/24.09, allocations: 3.942 MB / 6.679 GB, free: 31.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004572/24.09, allocations: 190.9 kB / 6.679 GB, free: 31.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008969/24.09, allocations: 111.5 kB / 6.679 GB, free: 31.86 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/24.09, allocations: 8.109 kB / 6.679 GB, free: 31.86 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01219/24.1, allocations: 3.696 MB / 6.683 GB, free: 31.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.875e-05/24.1, allocations: 19.78 kB / 6.683 GB, free: 31.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01969/24.12, allocations: 2.582 MB / 6.685 GB, free: 31.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004183/24.13, allocations: 358.2 kB / 6.686 GB, free: 31.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01332/24.14, allocations: 3.418 MB / 6.689 GB, free: 31.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004932/24.15, allocations: 190.8 kB / 6.689 GB, free: 31.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009854/24.15, allocations: 107.5 kB / 6.689 GB, free: 31.18 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 168 * 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: 0 * Non-linear torn systems: 1 {18 107} Notification: Performance of prepare postOptimizeDAE: time 0.001406/24.15, allocations: 233 kB / 6.69 GB, free: 31.06 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001202/24.15, allocations: 225.6 kB / 6.69 GB, free: 30.95 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01959/24.17, allocations: 3.88 MB / 6.694 GB, free: 30.73 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.082e-05/24.17, allocations: 31.61 kB / 6.694 GB, free: 30.73 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.047e-05/24.17, allocations: 3.969 kB / 6.694 GB, free: 30.73 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01459/24.18, allocations: 3.284 MB / 6.697 GB, free: 30.26 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02898/24.21, allocations: 6.337 MB / 6.703 GB, free: 29.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.573e-05/24.21, allocations: 0 / 6.703 GB, free: 29.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004205/24.22, allocations: 319.8 kB / 6.703 GB, free: 29.77 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01069/24.23, allocations: 1.2 MB / 6.704 GB, free: 29.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008597/24.23, allocations: 71.56 kB / 6.705 GB, free: 29.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01814/24.25, allocations: 10.41 MB / 6.715 GB, free: 21.78 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/24.25, allocations: 0 / 6.715 GB, free: 21.78 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02298/24.27, allocations: 5.118 MB / 6.72 GB, free: 21.37 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003571/24.27, allocations: 0.639 MB / 6.72 GB, free: 21.15 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001546/24.28, allocations: 53.97 kB / 6.72 GB, free: 21.15 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005638/24.28, allocations: 161.2 kB / 6.721 GB, free: 21.14 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001192/24.28, allocations: 168.4 kB / 6.721 GB, free: 21.13 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008681/24.28, allocations: 79.55 kB / 6.721 GB, free: 21.13 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005143/24.29, allocations: 1.273 MB / 6.722 GB, free: 20.97 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.663e-06/24.29, allocations: 3.094 kB / 6.722 GB, free: 20.97 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01439/24.3, allocations: 1.935 MB / 6.724 GB, free: 20.89 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.medium.T,tank.level,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.03063/24.33, allocations: 6.945 MB / 6.731 GB, free: 19.84 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02275/24.36, allocations: 4.872 MB / 6.735 GB, free: 19.74 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.417e-06/24.36, allocations: 0 / 6.735 GB, free: 19.74 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00688/24.36, allocations: 2.205 MB / 6.738 GB, free: 19.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008873/24.37, allocations: 0.9572 MB / 6.739 GB, free: 19.12 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0224/24.39, allocations: 5.743 MB / 6.744 GB, free: 18.08 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002018/24.4, allocations: 1.896 MB / 6.746 GB, free: 17.32 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002635/24.4, allocations: 1.033 MB / 6.747 GB, free: 17.32 MB / 474.7 MB Notification: Performance of SimCode: time 2.585e-06/24.4, allocations: 0 / 6.747 GB, free: 17.32 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.909/29.31, allocations: 99.77 MB / 6.844 GB, free: 52.38 MB / 490.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat