Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_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.001311/0.001311, allocations: 180 kB / 17.01 MB, free: 5.125 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.429/1.429, allocations: 205.4 MB / 223.1 MB, free: 9.113 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.0008191/0.0008193, allocations: 88.92 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.000279, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2685, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.644/6.912, allocations: 3.154 GB / 3.521 GB, free: 43.72 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/6.913, allocations: 87.95 kB / 3.521 GB, free: 43.63 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.504/16.42, allocations: 3.099 GB / 6.621 GB, free: 45.61 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.945e-06/16.42, allocations: 0 / 6.621 GB, free: 45.61 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003063/16.42, allocations: 69.11 kB / 6.621 GB, free: 45.61 MB / 474.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.01864/16.44, allocations: 3.91 MB / 6.624 GB, free: 43.73 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.355e-05/16.44, allocations: 6.688 kB / 6.624 GB, free: 43.73 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002013/16.44, allocations: 348.2 kB / 6.625 GB, free: 43.68 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001499/16.44, allocations: 316.5 kB / 6.625 GB, free: 43.54 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005966/16.45, allocations: 2.039 MB / 6.627 GB, free: 43.08 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002149/16.45, allocations: 221.7 kB / 6.627 GB, free: 43.01 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004645/16.45, allocations: 204 kB / 6.627 GB, free: 43.01 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005928/16.45, allocations: 3.36 MB / 6.631 GB, free: 42.52 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.659e-05/16.45, allocations: 5.938 kB / 6.631 GB, free: 42.52 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002835/16.45, allocations: 89.91 kB / 6.631 GB, free: 42.52 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002676/16.45, allocations: 206.8 kB / 6.631 GB, free: 42.52 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005077/16.46, allocations: 3.107 MB / 6.634 GB, free: 42.5 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.02001/16.48, allocations: 12.44 MB / 6.646 GB, free: 37.51 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004228/16.48, allocations: 2.257 MB / 6.648 GB, free: 37.36 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01003/16.49, allocations: 5.873 MB / 6.654 GB, free: 34.55 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.81e-05/16.49, allocations: 55.94 kB / 6.654 GB, free: 34.51 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001241/16.49, allocations: 193.9 kB / 6.654 GB, free: 34.41 MB / 474.7 MB Notification: Performance of pre-optimization done (n=174): time 5.36e-06/16.49, allocations: 0 / 6.654 GB, free: 34.41 MB / 474.7 MB Notification: Performance of matching and sorting (n=200): time 0.02363/16.52, allocations: 9.121 MB / 6.663 GB, free: 33.21 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.856e-05/16.52, allocations: 122.2 kB / 6.663 GB, free: 33.09 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002984/16.52, allocations: 1.669 MB / 6.665 GB, free: 32.87 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002045/16.52, allocations: 71.3 kB / 6.665 GB, free: 32.84 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000738/16.52, allocations: 1.028 MB / 6.666 GB, free: 32.43 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006114/16.52, allocations: 0.6906 MB / 6.667 GB, free: 31.98 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/16.52, allocations: 43.84 kB / 6.667 GB, free: 31.98 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/16.52, allocations: 401.2 kB / 6.667 GB, free: 31.68 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001835/16.52, allocations: 1.232 MB / 6.668 GB, free: 31.67 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002152/16.53, allocations: 1.745 MB / 6.67 GB, free: 31.12 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00209/16.53, allocations: 1.476 MB / 6.672 GB, free: 31.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.145e-05/16.53, allocations: 5.156 kB / 6.672 GB, free: 31.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.007816/16.54, allocations: 4.269 MB / 6.676 GB, free: 30.89 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001973/16.54, allocations: 5.801 MB / 6.681 GB, free: 24.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.876e-05/16.54, allocations: 16.72 kB / 6.681 GB, free: 24.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01334/16.55, allocations: 3.601 MB / 6.685 GB, free: 24.79 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001517/16.55, allocations: 314.9 kB / 6.685 GB, free: 24.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006788/16.56, allocations: 4.04 MB / 6.689 GB, free: 24.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003292/16.56, allocations: 204.5 kB / 6.689 GB, free: 24.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002919/16.56, allocations: 116.4 kB / 6.689 GB, free: 24.18 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/16.56, allocations: 4.75 kB / 6.689 GB, free: 24.18 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00644/16.57, allocations: 3.816 MB / 6.693 GB, free: 24.12 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.47e-05/16.57, allocations: 10.84 kB / 6.693 GB, free: 24.12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01074/16.58, allocations: 2.948 MB / 6.696 GB, free: 24.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001757/16.58, allocations: 360.6 kB / 6.696 GB, free: 24.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006177/16.59, allocations: 3.515 MB / 6.7 GB, free: 23.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002779/16.59, allocations: 193.5 kB / 6.7 GB, free: 23.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003738/16.59, allocations: 105 kB / 6.7 GB, free: 23.48 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 167 * 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 {19 108} Notification: Performance of prepare postOptimizeDAE: time 0.002058/16.59, allocations: 0.6988 MB / 6.701 GB, free: 23.28 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008699/16.59, allocations: 226.5 kB / 6.701 GB, free: 23.16 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008868/16.6, allocations: 4.087 MB / 6.705 GB, free: 22.93 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.523e-05/16.6, allocations: 23.78 kB / 6.705 GB, free: 22.93 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.86e-05/16.6, allocations: 0 / 6.705 GB, free: 22.93 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00607/16.61, allocations: 3.466 MB / 6.708 GB, free: 22.14 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01369/16.62, allocations: 6.438 MB / 6.715 GB, free: 19.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/16.62, allocations: 3.516 kB / 6.715 GB, free: 19.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001492/16.63, allocations: 325.8 kB / 6.715 GB, free: 19.67 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00464/16.63, allocations: 1.266 MB / 6.716 GB, free: 19.41 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002869/16.63, allocations: 72.98 kB / 6.716 GB, free: 19.38 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008505/16.64, allocations: 10.59 MB / 6.727 GB, free: 10.26 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/16.64, allocations: 0 / 6.727 GB, free: 10.26 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01146/16.65, allocations: 5.288 MB / 6.732 GB, free: 8.176 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00297/16.65, allocations: 0.6345 MB / 6.732 GB, free: 7.816 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001326/16.65, allocations: 53.27 kB / 6.733 GB, free: 7.781 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002681/16.66, allocations: 158.5 kB / 6.733 GB, free: 7.738 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005325/16.66, allocations: 171.7 kB / 6.733 GB, free: 7.715 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003307/16.66, allocations: 86.91 kB / 6.733 GB, free: 7.699 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002668/16.66, allocations: 1.264 MB / 6.734 GB, free: 7.207 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.1e-07/16.66, allocations: 0 / 6.734 GB, free: 7.207 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008875/16.67, allocations: 1.934 MB / 6.736 GB, free: 6.809 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 170 * 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%) 2,(1,100.0%) 6,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.01557/16.69, allocations: 7.096 MB / 6.743 GB, free: 3.875 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01324/16.7, allocations: 5.078 MB / 6.748 GB, free: 2.348 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/16.7, allocations: 0 / 6.748 GB, free: 2.348 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004803/16.7, allocations: 2.274 MB / 6.75 GB, free: 1.254 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005763/16.71, allocations: 0.9296 MB / 6.751 GB, free: 1.031 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02528/16.73, allocations: 18.46 MB / 6.769 GB, free: 2.516 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002698/16.74, allocations: 1.926 MB / 6.771 GB, free: 1.664 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004517/16.74, allocations: 0.9562 MB / 6.772 GB, free: 1.582 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002154/16.74, allocations: 1.007 MB / 6.773 GB, free: 0.8203 MB / 490.7 MB Notification: Performance of SimCode: time 1.092e-06/16.74, allocations: 0 / 6.773 GB, free: 0.8203 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5389/17.28, allocations: 95.42 MB / 6.866 GB, free: 51.62 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002212/17.28, allocations: 200.3 kB / 6.866 GB, free: 51.37 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.004/23.29, allocations: 0 / 6.866 GB, free: 51.37 MB / 490.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat