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: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001563/0.001563, allocations: 186.2 kB / 16.41 MB, free: 5.723 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.129 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.001129/0.001129, allocations: 92.36 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003847/0.0003847, allocations: 12 kB / 327 MB, free: 232 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3268, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.256/9.583, allocations: 3.154 GB / 3.52 GB, free: 80.37 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/9.583, allocations: 82.42 kB / 3.52 GB, free: 80.37 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 13.88/23.47, allocations: 3.099 GB / 6.619 GB, free: 43.91 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.998e-06/23.47, allocations: 0 / 6.619 GB, free: 43.91 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003226/23.47, allocations: 73.3 kB / 6.619 GB, free: 43.89 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.01938/23.49, allocations: 3.908 MB / 6.623 GB, free: 41.92 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/23.49, allocations: 10.19 kB / 6.623 GB, free: 41.92 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002704/23.49, allocations: 308.7 kB / 6.624 GB, free: 41.78 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008882/23.5, allocations: 2.035 MB / 6.626 GB, free: 41.26 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003412/23.5, allocations: 219.5 kB / 6.626 GB, free: 41.19 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001206/23.5, allocations: 201.3 kB / 6.626 GB, free: 41.19 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009928/23.51, allocations: 3.347 MB / 6.629 GB, free: 40.68 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001035/23.51, allocations: 13.88 kB / 6.629 GB, free: 40.68 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004414/23.51, allocations: 85.84 kB / 6.629 GB, free: 40.68 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003659/23.51, allocations: 199.2 kB / 6.63 GB, free: 40.68 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009855/23.52, allocations: 3.105 MB / 6.633 GB, free: 40.25 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.03348/23.55, allocations: 12.42 MB / 6.645 GB, free: 31.62 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006957/23.56, allocations: 2.244 MB / 6.647 GB, free: 29.65 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01563/23.58, allocations: 5.874 MB / 6.653 GB, free: 24.25 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.072e-05/23.58, allocations: 59.73 kB / 6.653 GB, free: 24.2 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001698/23.58, allocations: 193.2 kB / 6.653 GB, free: 24.01 MB / 474.7 MB Notification: Performance of pre-optimization done (n=174): time 7.894e-06/23.58, allocations: 0 / 6.653 GB, free: 24.01 MB / 474.7 MB Notification: Performance of matching and sorting (n=200): time 0.03998/23.62, allocations: 9.114 MB / 6.662 GB, free: 16.05 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.153e-05/23.62, allocations: 128.8 kB / 6.662 GB, free: 15.9 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00397/23.62, allocations: 1.667 MB / 6.663 GB, free: 14.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007248/23.62, allocations: 64.52 kB / 6.664 GB, free: 14.13 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008978/23.62, allocations: 0.9598 MB / 6.664 GB, free: 13.17 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001258/23.62, allocations: 0.681 MB / 6.665 GB, free: 12.49 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000378/23.62, allocations: 48 kB / 6.665 GB, free: 12.45 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002011/23.62, allocations: 399.4 kB / 6.666 GB, free: 12.05 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003704/23.63, allocations: 1.236 MB / 6.667 GB, free: 10.81 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004387/23.63, allocations: 1.738 MB / 6.668 GB, free: 8.871 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004432/23.64, allocations: 1.481 MB / 6.67 GB, free: 7.391 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.03e-05/23.64, allocations: 4 kB / 6.67 GB, free: 7.387 MB / 474.7 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01284/23.65, allocations: 4.144 MB / 6.674 GB, free: 3.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3749/24.03, allocations: 5.57 MB / 6.679 GB, free: 38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.687e-05/24.03, allocations: 17.28 kB / 6.679 GB, free: 38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02506/24.05, allocations: 3.6 MB / 6.683 GB, free: 37.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002552/24.05, allocations: 313.4 kB / 6.683 GB, free: 37.96 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/24.06, allocations: 4.04 MB / 6.687 GB, free: 37.41 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004788/24.07, allocations: 204.8 kB / 6.687 GB, free: 37.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008835/24.07, allocations: 111.9 kB / 6.687 GB, free: 37.41 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/24.07, allocations: 4.688 kB / 6.687 GB, free: 37.41 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01192/24.08, allocations: 3.813 MB / 6.691 GB, free: 37.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.795e-05/24.08, allocations: 15.69 kB / 6.691 GB, free: 37.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01749/24.1, allocations: 2.636 MB / 6.694 GB, free: 37.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003232/24.1, allocations: 362.3 kB / 6.694 GB, free: 37.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009104/24.11, allocations: 3.498 MB / 6.698 GB, free: 36.77 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003656/24.12, allocations: 199.3 kB / 6.698 GB, free: 36.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005577/24.12, allocations: 106.6 kB / 6.698 GB, free: 36.77 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.002374/24.12, allocations: 0.6928 MB / 6.699 GB, free: 36.58 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008323/24.12, allocations: 229.4 kB / 6.699 GB, free: 36.58 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01475/24.13, allocations: 4.079 MB / 6.703 GB, free: 36.39 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.202e-05/24.14, allocations: 27.22 kB / 6.703 GB, free: 36.39 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.045e-05/24.14, allocations: 0 / 6.703 GB, free: 36.39 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01114/24.15, allocations: 3.465 MB / 6.706 GB, free: 35.92 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02288/24.17, allocations: 6.435 MB / 6.712 GB, free: 35.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.731e-05/24.17, allocations: 6.203 kB / 6.712 GB, free: 35.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003311/24.17, allocations: 323.5 kB / 6.713 GB, free: 35.47 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008411/24.18, allocations: 1.267 MB / 6.714 GB, free: 35.41 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007301/24.18, allocations: 76.73 kB / 6.714 GB, free: 35.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01328/24.2, allocations: 10.6 MB / 6.724 GB, free: 27.53 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/24.2, allocations: 3.75 kB / 6.724 GB, free: 27.53 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01573/24.21, allocations: 5.275 MB / 6.73 GB, free: 27.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002627/24.21, allocations: 0.6449 MB / 6.73 GB, free: 26.98 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009067/24.21, allocations: 57.53 kB / 6.73 GB, free: 26.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003649/24.22, allocations: 154.2 kB / 6.73 GB, free: 26.98 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008184/24.22, allocations: 167.8 kB / 6.731 GB, free: 26.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003472/24.22, allocations: 80.47 kB / 6.731 GB, free: 26.98 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002949/24.22, allocations: 1.276 MB / 6.732 GB, free: 26.84 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.62e-07/24.22, allocations: 0 / 6.732 GB, free: 26.84 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009454/24.23, allocations: 1.929 MB / 6.734 GB, free: 26.84 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.00523/24.24, allocations: 1.36 MB / 6.735 GB, free: 26.71 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01928/24.26, allocations: 5.068 MB / 6.74 GB, free: 26.58 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.759e-06/24.26, allocations: 0 / 6.74 GB, free: 26.58 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007003/24.26, allocations: 2.256 MB / 6.742 GB, free: 26 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00812/24.27, allocations: 0.9294 MB / 6.743 GB, free: 25.96 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01698/24.29, allocations: 6.746 MB / 6.75 GB, free: 23.61 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002074/24.29, allocations: 1.9 MB / 6.752 GB, free: 22.85 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001514/24.29, allocations: 209.8 kB / 6.752 GB, free: 22.84 MB / 474.7 MB Notification: Performance of SimCode: time 9.52e-07/24.29, allocations: 0 / 6.752 GB, free: 22.84 MB / 474.7 MB Notification: Performance of Templates: time 0.1426/24.44, allocations: 87.63 MB / 6.837 GB, free: 15.39 MB / 490.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)