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 1.016/1.016, allocations: 111.1 MB / 126.7 MB, free: 6.121 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003995/0.0003997, allocations: 8 kB / 158.3 MB, free: 15.16 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07199/0.07242, allocations: 25.16 MB / 183.5 MB, free: 5.965 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.641/3.713, allocations: 1.455 GB / 1.634 GB, free: 31.57 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003473/3.714, allocations: 67.47 kB / 1.634 GB, free: 31.54 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.409/8.123, allocations: 0.9021 GB / 2.536 GB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.069e-06/8.123, allocations: 0 / 2.536 GB, free: 12.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002603/8.123, allocations: 73.92 kB / 2.536 GB, free: 12.78 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.01558/8.139, allocations: 4.179 MB / 2.54 GB, free: 10.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/8.139, allocations: 13.33 kB / 2.54 GB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00149/8.141, allocations: 307.4 kB / 2.54 GB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006399/8.147, allocations: 1.982 MB / 2.542 GB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004248/8.147, allocations: 266.8 kB / 2.543 GB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008151/8.148, allocations: 222.1 kB / 2.543 GB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00953/8.158, allocations: 3.794 MB / 2.547 GB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.372e-05/8.158, allocations: 5.875 kB / 2.547 GB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003987/8.158, allocations: 95.19 kB / 2.547 GB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002598/8.159, allocations: 182.8 kB / 2.547 GB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01047/8.169, allocations: 3.692 MB / 2.55 GB, free: 9.469 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.02848/8.198, allocations: 16.94 MB / 2.567 GB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006042/8.204, allocations: 2.223 MB / 2.569 GB, free: 15.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4695/8.673, allocations: 107.6 MB / 2.674 GB, free: 38.1 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.613e-05/8.673, allocations: 60.95 kB / 2.674 GB, free: 38.06 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001514/8.675, allocations: 178.1 kB / 2.674 GB, free: 38.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=182): time 6.849e-06/8.675, allocations: 0 / 2.674 GB, free: 38.05 MB / 346.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.07644/8.751, allocations: 17.5 MB / 2.692 GB, free: 36.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.112e-05/8.752, allocations: 127.9 kB / 2.692 GB, free: 36.12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002873/8.754, allocations: 1.429 MB / 2.693 GB, free: 35.96 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005438/8.755, allocations: 68.2 kB / 2.693 GB, free: 35.93 MB / 346.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.0007395/8.756, allocations: 0.9565 MB / 2.694 GB, free: 35.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009368/8.757, allocations: 0.7076 MB / 2.695 GB, free: 35.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002454/8.757, allocations: 44.31 kB / 2.695 GB, free: 35.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001673/8.757, allocations: 397.9 kB / 2.695 GB, free: 34.76 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00391/8.761, allocations: 1.492 MB / 2.697 GB, free: 34.74 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0043/8.765, allocations: 1.954 MB / 2.699 GB, free: 34.23 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.07598/8.841, allocations: 8.798 MB / 2.707 GB, free: 33.87 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-05/8.841, allocations: 3.125 kB / 2.707 GB, free: 33.87 MB / 346.7 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.01315/8.855, allocations: 5.014 MB / 2.712 GB, free: 33.71 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/8.855, allocations: 15.88 kB / 2.712 GB, free: 33.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.862e-05/8.855, allocations: 10.59 kB / 2.712 GB, free: 33.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03145/8.886, allocations: 5.127 MB / 2.717 GB, free: 33.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00173/8.888, allocations: 280.7 kB / 2.717 GB, free: 33.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01336/8.901, allocations: 5.918 MB / 2.723 GB, free: 32.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003706/8.905, allocations: 285.8 kB / 2.723 GB, free: 32.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006009/8.906, allocations: 116.4 kB / 2.723 GB, free: 32.34 MB / 346.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.002071/8.908, allocations: 0.6586 MB / 2.724 GB, free: 32.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006788/8.909, allocations: 217.8 kB / 2.724 GB, free: 32.1 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01731/8.926, allocations: 8.023 MB / 2.732 GB, free: 31.48 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.269e-05/8.926, allocations: 63.95 kB / 2.732 GB, free: 31.48 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/8.926, allocations: 0 / 2.732 GB, free: 31.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01408/8.94, allocations: 6.917 MB / 2.739 GB, free: 30.62 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02521/8.965, allocations: 11.67 MB / 2.75 GB, free: 22.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.513e-05/8.965, allocations: 0 / 2.75 GB, free: 22.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002183/8.968, allocations: 375.7 kB / 2.751 GB, free: 22.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01071/8.978, allocations: 2.445 MB / 2.753 GB, free: 20.26 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005907/8.979, allocations: 90.52 kB / 2.753 GB, free: 20.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2367/9.216, allocations: 6.476 MB / 2.76 GB, free: 54.96 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.91e-06/9.216, allocations: 1.641 kB / 2.76 GB, free: 54.96 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02154/9.237, allocations: 9.56 MB / 2.769 GB, free: 54.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002512/9.24, allocations: 0.7793 MB / 2.77 GB, free: 54.45 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008053/9.241, allocations: 64.98 kB / 2.77 GB, free: 54.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002992/9.244, allocations: 240 kB / 2.77 GB, free: 54.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006946/9.244, allocations: 215.7 kB / 2.77 GB, free: 54.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003799/9.245, allocations: 95.61 kB / 2.77 GB, free: 54.44 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002319/9.247, allocations: 1.084 MB / 2.771 GB, free: 54.33 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.169e-06/9.247, allocations: 0.5625 kB / 2.771 GB, free: 54.33 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.009856/9.257, allocations: 2.573 MB / 2.774 GB, free: 54.3 MB / 346.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.01333/9.27, allocations: 3.263 MB / 2.777 GB, free: 53.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01181/9.282, allocations: 4.592 MB / 2.781 GB, free: 53.87 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.935e-06/9.282, allocations: 1.938 kB / 2.781 GB, free: 53.87 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007334/9.29, allocations: 2.989 MB / 2.784 GB, free: 53.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007538/9.297, allocations: 1.053 MB / 2.785 GB, free: 53.81 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01859/9.316, allocations: 9.094 MB / 2.794 GB, free: 50.78 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002175/9.318, allocations: 2.154 MB / 2.796 GB, free: 50.04 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00112/9.319, allocations: 222.2 kB / 2.797 GB, free: 50.04 MB / 346.7 MB Notification: Performance of SimCode: time 2e-06/9.319, allocations: 3.25 kB / 2.797 GB, free: 50.04 MB / 346.7 MB Notification: Performance of Templates: time 0.445/9.764, allocations: 125 MB / 2.919 GB, free: 56.98 MB / 346.7 MB