Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.9653/0.9653, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003836/0.0003836, allocations: 8 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07436/0.07477, allocations: 25.16 MB / 184 MB, free: 6.027 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.435/4.51, allocations: 1.455 GB / 1.634 GB, free: 30.91 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002874/4.51, allocations: 70.47 kB / 1.634 GB, free: 30.91 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.841/9.351, allocations: 0.9021 GB / 2.537 GB, free: 14.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.126e-06/9.352, allocations: 0 / 2.537 GB, free: 14.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003354/9.352, allocations: 74.2 kB / 2.537 GB, free: 14.43 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.02029/9.372, allocations: 4.177 MB / 2.541 GB, free: 12.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/9.372, allocations: 13.2 kB / 2.541 GB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002028/9.374, allocations: 308.3 kB / 2.541 GB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007748/9.382, allocations: 1.996 MB / 2.543 GB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004742/9.383, allocations: 260.4 kB / 2.543 GB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001043/9.384, allocations: 219.4 kB / 2.543 GB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01152/9.395, allocations: 3.819 MB / 2.547 GB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.984e-05/9.395, allocations: 7.75 kB / 2.547 GB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004466/9.396, allocations: 90.62 kB / 2.547 GB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003232/9.396, allocations: 178.4 kB / 2.547 GB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01212/9.408, allocations: 3.698 MB / 2.551 GB, free: 10.77 MB / 298.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.03468/9.443, allocations: 16.92 MB / 2.568 GB, free: 15.01 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00786/9.451, allocations: 2.237 MB / 2.57 GB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6265/10.08, allocations: 107.5 MB / 2.675 GB, free: 16.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.132e-05/10.08, allocations: 54.56 kB / 2.675 GB, free: 16.42 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001866/10.08, allocations: 181.2 kB / 2.675 GB, free: 16.42 MB / 362.7 MB Notification: Performance of pre-optimization done (n=182): time 7.214e-06/10.08, allocations: 0 / 2.675 GB, free: 16.42 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: pump.medium.h 3: tank.medium.h 4: pump.medium.p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=208): time 0.09638/10.18, allocations: 17.5 MB / 2.692 GB, free: 14.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/10.18, allocations: 124.3 kB / 2.692 GB, free: 14.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003324/10.18, allocations: 1.626 MB / 2.694 GB, free: 14.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007048/10.18, allocations: 66.92 kB / 2.694 GB, free: 14.27 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.0009603/10.18, allocations: 0.9595 MB / 2.695 GB, free: 13.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001359/10.18, allocations: 0.7074 MB / 2.695 GB, free: 13.45 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003067/10.18, allocations: 42.53 kB / 2.695 GB, free: 13.45 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002816/10.18, allocations: 404.7 kB / 2.696 GB, free: 13.13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005001/10.19, allocations: 1.488 MB / 2.697 GB, free: 13.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005425/10.19, allocations: 1.965 MB / 2.699 GB, free: 12.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.09569/10.29, allocations: 8.803 MB / 2.708 GB, free: 7.984 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.089e-05/10.29, allocations: 4 kB / 2.708 GB, free: 7.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.01843/10.31, allocations: 5.012 MB / 2.713 GB, free: 5.359 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.258e-05/10.31, allocations: 8 kB / 2.713 GB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.578e-05/10.31, allocations: 12.94 kB / 2.713 GB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03779/10.35, allocations: 5.131 MB / 2.718 GB, free: 1.934 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002382/10.35, allocations: 280.9 kB / 2.718 GB, free: 1.727 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3155/10.66, allocations: 6.073 MB / 2.724 GB, free: 74.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004689/10.67, allocations: 287.5 kB / 2.724 GB, free: 74.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00081/10.67, allocations: 118.5 kB / 2.724 GB, free: 74.75 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: 57 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 135 * 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 {22 124} Notification: Performance of prepare postOptimizeDAE: time 0.002594/10.67, allocations: 0.6543 MB / 2.725 GB, free: 74.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008131/10.67, allocations: 220.1 kB / 2.725 GB, free: 74.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02398/10.7, allocations: 8.013 MB / 2.733 GB, free: 74.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001466/10.7, allocations: 66.09 kB / 2.733 GB, free: 74.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-05/10.7, allocations: 0.9062 kB / 2.733 GB, free: 74.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01792/10.72, allocations: 6.919 MB / 2.74 GB, free: 73.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0324/10.75, allocations: 11.67 MB / 2.751 GB, free: 72.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.639e-05/10.75, allocations: 0 / 2.751 GB, free: 72.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003169/10.75, allocations: 372 kB / 2.752 GB, free: 72.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01351/10.76, allocations: 2.45 MB / 2.754 GB, free: 72.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007693/10.77, allocations: 87.56 kB / 2.754 GB, free: 72.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009126/10.77, allocations: 6.482 MB / 2.76 GB, free: 69.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/10.77, allocations: 0 / 2.76 GB, free: 69.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02531/10.8, allocations: 9.537 MB / 2.77 GB, free: 68.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002897/10.8, allocations: 0.7754 MB / 2.77 GB, free: 68.45 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001023/10.8, allocations: 62.73 kB / 2.771 GB, free: 68.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00404/10.81, allocations: 244.6 kB / 2.771 GB, free: 68.44 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009975/10.81, allocations: 216.5 kB / 2.771 GB, free: 68.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004114/10.81, allocations: 91.66 kB / 2.771 GB, free: 68.44 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002594/10.81, allocations: 1.085 MB / 2.772 GB, free: 68.33 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.01e-07/10.81, allocations: 3.719 kB / 2.772 GB, free: 68.33 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01212/10.82, allocations: 2.571 MB / 2.775 GB, free: 68.21 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (199): * Single equations (assignments): 177 * 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,1 1,4 17,2 4,2 12,1 1,4 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01668/10.84, allocations: 3.262 MB / 2.778 GB, free: 67.87 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01501/10.86, allocations: 4.584 MB / 2.782 GB, free: 67.76 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/10.86, allocations: 1.875 kB / 2.782 GB, free: 67.76 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009296/10.87, allocations: 3.008 MB / 2.785 GB, free: 67.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01012/10.88, allocations: 1.059 MB / 2.786 GB, free: 67.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02341/10.9, allocations: 9.035 MB / 2.795 GB, free: 64.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002602/10.9, allocations: 2.159 MB / 2.797 GB, free: 63.17 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00136/10.9, allocations: 217.2 kB / 2.797 GB, free: 63.14 MB / 362.7 MB Notification: Performance of SimCode: time 1.593e-06/10.9, allocations: 0 / 2.797 GB, free: 63.14 MB / 362.7 MB Notification: Performance of Templates: time 0.5296/11.43, allocations: 125 MB / 2.92 GB, free: 58.52 MB / 362.7 MB