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: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.151/1.151, allocations: 111.2 MB / 124.2 MB, free: 11.15 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.054e-05/3.075e-05, allocations: 4 kB / 154.4 MB, free: 13.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.1699, allocations: 25.14 MB / 179.5 MB, free: 0.8281 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.584/4.754, allocations: 1.455 GB / 1.63 GB, free: 14.67 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/4.754, allocations: 66.09 kB / 1.63 GB, free: 14.64 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089/9.843, allocations: 0.899 GB / 2.529 GB, free: 14.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.425e-06/9.843, allocations: 0 / 2.529 GB, free: 14.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003487/9.844, allocations: 68.16 kB / 2.529 GB, free: 14.18 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.01904/9.863, allocations: 3.887 MB / 2.533 GB, free: 12.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/9.863, allocations: 9.25 kB / 2.533 GB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001669/9.865, allocations: 365 kB / 2.533 GB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00194/9.867, allocations: 312.6 kB / 2.533 GB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008334/9.875, allocations: 1.98 MB / 2.535 GB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005475/9.876, allocations: 265.2 kB / 2.536 GB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001209/9.877, allocations: 220.2 kB / 2.536 GB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01186/9.889, allocations: 3.675 MB / 2.539 GB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000118/9.889, allocations: 10.66 kB / 2.539 GB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007009/9.89, allocations: 99.31 kB / 2.54 GB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003754/9.89, allocations: 181 kB / 2.54 GB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01036/9.9, allocations: 3.466 MB / 2.543 GB, free: 10.96 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.03647/9.937, allocations: 16.94 MB / 2.56 GB, free: 1.289 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00834/9.945, allocations: 2.115 MB / 2.562 GB, free: 1.238 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006805/9.952, allocations: 1.431 MB / 2.563 GB, free: 1.219 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6502/10.6, allocations: 108.3 MB / 2.669 GB, free: 8.535 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.627e-05/10.6, allocations: 60.19 kB / 2.669 GB, free: 8.492 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001693/10.6, allocations: 175.7 kB / 2.669 GB, free: 8.492 MB / 346.7 MB Notification: Performance of pre-optimization done (n=179): time 8.075e-06/10.6, allocations: 1.641 kB / 2.669 GB, free: 8.492 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: tank.medium.h 3: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=205): time 0.0618/10.67, allocations: 12.25 MB / 2.681 GB, free: 7.609 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/10.67, allocations: 124.6 kB / 2.681 GB, free: 7.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003287/10.67, allocations: 1.425 MB / 2.683 GB, free: 7.305 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007187/10.67, allocations: 66.39 kB / 2.683 GB, free: 7.27 MB / 346.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.001062/10.67, allocations: 0.9659 MB / 2.684 GB, free: 6.879 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001254/10.67, allocations: 0.7012 MB / 2.684 GB, free: 6.43 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002956/10.67, allocations: 43.84 kB / 2.684 GB, free: 6.43 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002592/10.67, allocations: 402.2 kB / 2.685 GB, free: 6.113 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003762/10.68, allocations: 1.341 MB / 2.686 GB, free: 6.105 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004389/10.68, allocations: 1.812 MB / 2.688 GB, free: 5.586 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.08956/10.77, allocations: 8.406 MB / 2.696 GB, free: 5.227 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.565e-05/10.77, allocations: 3.875 kB / 2.696 GB, free: 5.227 MB / 346.7 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.01463/10.79, allocations: 4.569 MB / 2.7 GB, free: 3.176 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.53e-05/10.79, allocations: 12 kB / 2.7 GB, free: 3.164 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.073e-05/10.79, allocations: 12 kB / 2.7 GB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03436/10.82, allocations: 4.635 MB / 2.705 GB, free: 136 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003073/10.82, allocations: 318.9 kB / 2.705 GB, free: 0 / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2962/11.12, allocations: 5.545 MB / 2.711 GB, free: 60.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004709/11.12, allocations: 281.8 kB / 2.711 GB, free: 60.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008677/11.13, allocations: 114.5 kB / 2.711 GB, free: 60.08 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: 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.0008511/11.13, allocations: 242.3 kB / 2.711 GB, free: 59.97 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007844/11.13, allocations: 214 kB / 2.712 GB, free: 59.97 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02079/11.15, allocations: 7.778 MB / 2.719 GB, free: 59.55 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001083/11.15, allocations: 66.97 kB / 2.719 GB, free: 59.55 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/11.15, allocations: 0 / 2.719 GB, free: 59.55 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01442/11.16, allocations: 6.672 MB / 2.726 GB, free: 58.87 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02812/11.19, allocations: 11.22 MB / 2.737 GB, free: 58.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.279e-05/11.19, allocations: 2.312 kB / 2.737 GB, free: 58.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003121/11.19, allocations: 371.7 kB / 2.737 GB, free: 58.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00996/11.2, allocations: 2.259 MB / 2.739 GB, free: 58.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000733/11.2, allocations: 90.08 kB / 2.739 GB, free: 58.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007566/11.21, allocations: 6.279 MB / 2.745 GB, free: 54.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/11.21, allocations: 0 / 2.745 GB, free: 54.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02031/11.23, allocations: 8.994 MB / 2.754 GB, free: 53.99 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002948/11.24, allocations: 0.7784 MB / 2.755 GB, free: 53.74 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000973/11.24, allocations: 64.09 kB / 2.755 GB, free: 53.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003997/11.24, allocations: 242.2 kB / 2.755 GB, free: 53.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009179/11.24, allocations: 213.9 kB / 2.755 GB, free: 53.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004465/11.24, allocations: 93.19 kB / 2.756 GB, free: 53.72 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00259/11.24, allocations: 1.107 MB / 2.757 GB, free: 53.61 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.41e-07/11.24, allocations: 0 / 2.757 GB, free: 53.61 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.01182/11.26, allocations: 2.564 MB / 2.759 GB, free: 53.48 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 () * 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.03665/11.29, allocations: 12.29 MB / 2.771 GB, free: 51.97 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01294/11.31, allocations: 4.253 MB / 2.775 GB, free: 50.51 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/11.31, allocations: 6.094 kB / 2.775 GB, free: 50.51 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008319/11.31, allocations: 2.819 MB / 2.778 GB, free: 49.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01011/11.32, allocations: 1.082 MB / 2.779 GB, free: 49.2 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02691/11.35, allocations: 7.913 MB / 2.787 GB, free: 46.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002261/11.35, allocations: 2.165 MB / 2.789 GB, free: 45.47 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002675/11.36, allocations: 1.228 MB / 2.79 GB, free: 44.52 MB / 346.7 MB Notification: Performance of SimCode: time 3.146e-06/11.36, allocations: 0 / 2.79 GB, free: 44.52 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.499/16.86, allocations: 138.8 MB / 2.926 GB, free: 14 MB / 346.7 MB