Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.HeatingSystem.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 0.9344/0.9344, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.062e-05/2.073e-05, allocations: 4 kB / 154.3 MB, free: 13.16 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1829/0.183, allocations: 25.15 MB / 179.4 MB, free: 0.7852 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.501/3.684, allocations: 1.455 GB / 1.63 GB, free: 57.87 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/3.684, allocations: 61.64 kB / 1.63 GB, free: 57.87 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.031/7.716, allocations: 0.8991 GB / 2.529 GB, free: 11.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.806e-06/7.716, allocations: 2.906 kB / 2.529 GB, free: 11.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002471/7.716, allocations: 71.64 kB / 2.529 GB, free: 11.72 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 573 * Number of variables: 573 Notification: Performance of Generate backend data structure: time 0.01397/7.73, allocations: 3.881 MB / 2.533 GB, free: 8.008 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/7.73, allocations: 8.031 kB / 2.533 GB, free: 8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001367/7.731, allocations: 312.5 kB / 2.533 GB, free: 7.691 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005822/7.737, allocations: 1.976 MB / 2.535 GB, free: 5.656 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003825/7.738, allocations: 267.6 kB / 2.535 GB, free: 5.379 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008035/7.739, allocations: 216 kB / 2.535 GB, free: 5.168 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008258/7.747, allocations: 3.677 MB / 2.539 GB, free: 1.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.911e-05/7.747, allocations: 11.84 kB / 2.539 GB, free: 1.258 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003911/7.747, allocations: 95.97 kB / 2.539 GB, free: 1.164 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002673/7.748, allocations: 176 kB / 2.539 GB, free: 0.9883 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2389/7.987, allocations: 3.466 MB / 2.543 GB, free: 10.51 MB / 298.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.02909/8.016, allocations: 16.91 MB / 2.559 GB, free: 17.23 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005094/8.021, allocations: 2.109 MB / 2.561 GB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002964/8.024, allocations: 1.432 MB / 2.563 GB, free: 17.17 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4715/8.495, allocations: 108.3 MB / 2.668 GB, free: 69.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.992e-05/8.495, allocations: 56.84 kB / 2.669 GB, free: 69.25 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001426/8.497, allocations: 179.1 kB / 2.669 GB, free: 69.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=179): time 6.097e-06/8.497, allocations: 0.8438 kB / 2.669 GB, free: 69.25 MB / 362.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: tank.level 2: tank.medium.h 3: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=205): time 0.04916/8.546, allocations: 12.26 MB / 2.681 GB, free: 68.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/8.546, allocations: 126.5 kB / 2.681 GB, free: 68.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002853/8.549, allocations: 1.425 MB / 2.682 GB, free: 68.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000526/8.55, allocations: 60.92 kB / 2.682 GB, free: 68.14 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Fluid/Valves.mo:368:7-373:78:writable] Warning: The parameter valve.Av has fixed = false, a start value, start = valve.m_flow_nominal * Modelica.Fluid.Valves.ValveIncompressible$valve.valveCharacteristic(valve.opening_nominal) / sqrt(valve.rho_nominal * valve.dp_nominal) and a binding equation valve.Av = 0.0, which is probably redundant. The binding equation will be ignored, as it is expected for Modelica 3.1. Notification: Performance of collectInitialEqns (initialization): time 0.0007291/8.55, allocations: 0.9609 MB / 2.683 GB, free: 67.76 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000908/8.551, allocations: 0.6975 MB / 2.684 GB, free: 67.33 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000247/8.552, allocations: 45.56 kB / 2.684 GB, free: 67.33 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001691/8.552, allocations: 407.1 kB / 2.684 GB, free: 67.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003155/8.555, allocations: 1.339 MB / 2.686 GB, free: 67.01 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003439/8.558, allocations: 1.809 MB / 2.687 GB, free: 66.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.06743/8.626, allocations: 8.409 MB / 2.696 GB, free: 66.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.755e-05/8.626, allocations: 5.406 kB / 2.696 GB, free: 66.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.01126/8.637, allocations: 4.574 MB / 2.7 GB, free: 66.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/8.637, allocations: 12.44 kB / 2.7 GB, free: 66.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.123e-05/8.637, allocations: 13.97 kB / 2.7 GB, free: 66.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02803/8.665, allocations: 4.63 MB / 2.705 GB, free: 66.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001586/8.667, allocations: 286.8 kB / 2.705 GB, free: 66.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/8.677, allocations: 5.542 MB / 2.71 GB, free: 64.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003808/8.681, allocations: 286.4 kB / 2.711 GB, free: 64.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000611/8.682, allocations: 111.4 kB / 2.711 GB, free: 64.96 MB / 362.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.heater.mediums[1].p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 14 (radiator.state_b.phase,heater.state_a.phase,valve.state_b.phase,valve.state_a.phase,tank.heatTransfer.states[1].phase,pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[1].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,radiator.state_a.phase,heater.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 124} Notification: Performance of prepare postOptimizeDAE: time 0.0006826/8.683, allocations: 238.5 kB / 2.711 GB, free: 64.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006695/8.683, allocations: 220.2 kB / 2.711 GB, free: 64.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01559/8.699, allocations: 7.768 MB / 2.719 GB, free: 64.17 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.33e-05/8.699, allocations: 67.03 kB / 2.719 GB, free: 64.17 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/8.699, allocations: 0 / 2.719 GB, free: 64.17 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01179/8.711, allocations: 6.677 MB / 2.725 GB, free: 63.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02241/8.733, allocations: 11.21 MB / 2.736 GB, free: 62.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.487e-05/8.733, allocations: 0 / 2.736 GB, free: 62.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002258/8.736, allocations: 369.4 kB / 2.737 GB, free: 62.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008943/8.745, allocations: 2.266 MB / 2.739 GB, free: 61.69 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005532/8.745, allocations: 88.38 kB / 2.739 GB, free: 61.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006454/8.752, allocations: 6.267 MB / 2.745 GB, free: 56.99 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.783e-06/8.752, allocations: 2.531 kB / 2.745 GB, free: 56.99 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01613/8.768, allocations: 8.996 MB / 2.754 GB, free: 53.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002285/8.77, allocations: 0.7792 MB / 2.755 GB, free: 52.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000717/8.771, allocations: 67.05 kB / 2.755 GB, free: 52.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002808/8.774, allocations: 240.2 kB / 2.755 GB, free: 52.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005273/8.774, allocations: 216 kB / 2.755 GB, free: 52.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000313/8.775, allocations: 92.97 kB / 2.755 GB, free: 52.38 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001982/8.777, allocations: 1.103 MB / 2.756 GB, free: 51.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.071e-06/8.777, allocations: 0.9375 kB / 2.756 GB, free: 51.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.009071/8.786, allocations: 2.573 MB / 2.759 GB, free: 49.16 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (tank.medium.h,tank.m,heater.mediums[1].h,radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 36 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse12.phase,$cse15.phase,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse24.phase,$cse24.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse33.phase,$cse33.region,$cse36.phase,$cse36.region,$cse41.phase,$cse44.phase,$cse51.phase,$cse52.phase,$cse55.phase,$cse55.region,tank.heatTransfer.states[1].phase,pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[1].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {1 1,2 4,1 1,4 17,2 12,1 1,3 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.01224/8.798, allocations: 3.264 MB / 2.762 GB, free: 47.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009246/8.807, allocations: 4.249 MB / 2.766 GB, free: 43.35 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.478e-06/8.807, allocations: 0 / 2.766 GB, free: 43.35 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006104/8.813, allocations: 2.829 MB / 2.769 GB, free: 40.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006283/8.82, allocations: 1.083 MB / 2.77 GB, free: 40.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2842/9.104, allocations: 6.403 MB / 2.776 GB, free: 70.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002186/9.106, allocations: 2.159 MB / 2.778 GB, free: 69.74 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/9.107, allocations: 222.9 kB / 2.778 GB, free: 69.74 MB / 362.7 MB Notification: Performance of SimCode: time 1.978e-06/9.107, allocations: 1.781 kB / 2.778 GB, free: 69.74 MB / 362.7 MB Notification: Performance of Templates: time 0.3991/9.506, allocations: 125.1 MB / 2.901 GB, free: 69.54 MB / 362.7 MB