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.186/1.186, allocations: 111.1 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003544/0.0003545, allocations: 4 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06476/0.06517, allocations: 25.17 MB / 183.6 MB, free: 5.883 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.922/4.988, allocations: 1.455 GB / 1.634 GB, free: 32.5 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/4.988, allocations: 71 kB / 1.634 GB, free: 32.5 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.043/10.03, allocations: 0.902 GB / 2.536 GB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.817e-06/10.03, allocations: 0 / 2.536 GB, free: 14.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000453/10.03, allocations: 68.77 kB / 2.536 GB, free: 14.38 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.02672/10.06, allocations: 4.183 MB / 2.54 GB, free: 12.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.129e-05/10.06, allocations: 12.23 kB / 2.54 GB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002551/10.06, allocations: 373.7 kB / 2.541 GB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002544/10.06, allocations: 308.2 kB / 2.541 GB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01144/10.08, allocations: 1.982 MB / 2.543 GB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007461/10.08, allocations: 273.7 kB / 2.543 GB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001512/10.08, allocations: 221 kB / 2.543 GB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01837/10.1, allocations: 3.801 MB / 2.547 GB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001805/10.1, allocations: 14.44 kB / 2.547 GB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001371/10.1, allocations: 91.31 kB / 2.547 GB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005239/10.1, allocations: 183.5 kB / 2.547 GB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01616/10.11, allocations: 3.699 MB / 2.551 GB, free: 10.65 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.03816/10.15, allocations: 16.94 MB / 2.567 GB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008368/10.16, allocations: 2.232 MB / 2.57 GB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6565/10.82, allocations: 107.6 MB / 2.675 GB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.8e-05/10.82, allocations: 56.92 kB / 2.675 GB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002238/10.82, allocations: 177.1 kB / 2.675 GB, free: 15.53 MB / 362.7 MB Notification: Performance of pre-optimization done (n=182): time 1.298e-05/10.82, allocations: 4.562 kB / 2.675 GB, free: 15.52 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.09882/10.92, allocations: 17.5 MB / 2.692 GB, free: 13.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001249/10.92, allocations: 127.4 kB / 2.692 GB, free: 13.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003402/10.92, allocations: 1.439 MB / 2.693 GB, free: 13.42 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008192/10.92, allocations: 63.86 kB / 2.694 GB, free: 13.39 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.001151/10.92, allocations: 0.9606 MB / 2.694 GB, free: 13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001485/10.93, allocations: 0.7101 MB / 2.695 GB, free: 12.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000342/10.93, allocations: 45.25 kB / 2.695 GB, free: 12.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003235/10.93, allocations: 397.1 kB / 2.696 GB, free: 12.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005131/10.93, allocations: 1.493 MB / 2.697 GB, free: 12.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005739/10.94, allocations: 1.954 MB / 2.699 GB, free: 11.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.09774/11.04, allocations: 8.806 MB / 2.708 GB, free: 7.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.989e-05/11.04, allocations: 4 kB / 2.708 GB, free: 7.227 MB / 362.7 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.02046/11.06, allocations: 5.011 MB / 2.712 GB, free: 4.602 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.16e-05/11.06, allocations: 8.844 kB / 2.712 GB, free: 4.594 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.391e-05/11.06, allocations: 12 kB / 2.712 GB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03864/11.09, allocations: 5.124 MB / 2.717 GB, free: 1.199 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002411/11.1, allocations: 287.7 kB / 2.718 GB, free: 0.9883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3338/11.43, allocations: 6.058 MB / 2.724 GB, free: 75.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005028/11.44, allocations: 285 kB / 2.724 GB, free: 75.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001023/11.44, allocations: 118.1 kB / 2.724 GB, free: 75.36 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.003324/11.44, allocations: 0.6596 MB / 2.725 GB, free: 75.24 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000929/11.44, allocations: 216.7 kB / 2.725 GB, free: 75.24 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02616/11.47, allocations: 8.014 MB / 2.733 GB, free: 74.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001545/11.47, allocations: 68.81 kB / 2.733 GB, free: 74.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.674e-05/11.47, allocations: 3.062 kB / 2.733 GB, free: 74.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01839/11.49, allocations: 6.915 MB / 2.74 GB, free: 74.13 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03402/11.52, allocations: 11.68 MB / 2.751 GB, free: 73.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.491e-05/11.52, allocations: 0 / 2.751 GB, free: 73.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003241/11.52, allocations: 370.4 kB / 2.751 GB, free: 73.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01395/11.54, allocations: 2.454 MB / 2.754 GB, free: 73.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000872/11.54, allocations: 87.64 kB / 2.754 GB, free: 73.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009198/11.55, allocations: 6.478 MB / 2.76 GB, free: 69.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.431e-06/11.55, allocations: 0.75 kB / 2.76 GB, free: 69.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02566/11.57, allocations: 9.557 MB / 2.769 GB, free: 69.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002967/11.58, allocations: 0.7866 MB / 2.77 GB, free: 69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001091/11.58, allocations: 60.27 kB / 2.77 GB, free: 69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004312/11.58, allocations: 240.4 kB / 2.77 GB, free: 68.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001118/11.58, allocations: 213.4 kB / 2.771 GB, free: 68.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004093/11.58, allocations: 101.4 kB / 2.771 GB, free: 68.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002731/11.59, allocations: 1.083 MB / 2.772 GB, free: 68.87 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.062e-06/11.59, allocations: 3.656 kB / 2.772 GB, free: 68.87 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01295/11.6, allocations: 2.579 MB / 2.774 GB, free: 68.74 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.04323/11.64, allocations: 12.84 MB / 2.787 GB, free: 66.88 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01567/11.66, allocations: 4.582 MB / 2.791 GB, free: 65.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/11.66, allocations: 5.312 kB / 2.791 GB, free: 65.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009562/11.67, allocations: 3.001 MB / 2.794 GB, free: 64.28 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01006/11.68, allocations: 1.051 MB / 2.795 GB, free: 64.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04631/11.72, allocations: 23.76 MB / 2.819 GB, free: 46.72 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003548/11.73, allocations: 2.16 MB / 2.821 GB, free: 45.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003225/11.73, allocations: 1.235 MB / 2.822 GB, free: 44.89 MB / 362.7 MB Notification: Performance of SimCode: time 1.663e-06/11.73, allocations: 0 / 2.822 GB, free: 44.89 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.613/17.34, allocations: 136.4 MB / 2.955 GB, free: 21.14 MB / 362.7 MB