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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.244/1.244, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.248e-05/2.284e-05, allocations: 4 kB / 148.2 MB, free: 6.137 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05816/0.05822, allocations: 25.17 MB / 173.4 MB, free: 12.93 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.398/4.456, allocations: 1.454 GB / 1.623 GB, free: 46 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/4.456, allocations: 61.41 kB / 1.623 GB, free: 45.97 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.487/9.943, allocations: 0.892 GB / 2.515 GB, free: 17.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.897e-06/9.943, allocations: 0 / 2.515 GB, free: 17.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003658/9.943, allocations: 72.97 kB / 2.515 GB, free: 17.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.01976/9.963, allocations: 3.888 MB / 2.519 GB, free: 15.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/9.963, allocations: 9.625 kB / 2.519 GB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002135/9.965, allocations: 308 kB / 2.519 GB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008168/9.973, allocations: 1.973 MB / 2.521 GB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000472/9.974, allocations: 193.1 kB / 2.522 GB, free: 14.87 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001098/9.975, allocations: 128.7 kB / 2.522 GB, free: 14.87 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008739/9.984, allocations: 2.985 MB / 2.525 GB, free: 14.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01084/9.995, allocations: 3.224 MB / 2.528 GB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001162/9.995, allocations: 11.44 kB / 2.528 GB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005702/9.995, allocations: 5.344 kB / 2.528 GB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00035/9.996, allocations: 187.5 kB / 2.528 GB, free: 14.29 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.03533/10.03, allocations: 16.45 MB / 2.544 GB, free: 4.859 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00483/10.04, allocations: 1.928 MB / 2.546 GB, free: 4.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003506/10.04, allocations: 1.378 MB / 2.547 GB, free: 4.809 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6129/10.65, allocations: 108.2 MB / 2.653 GB, free: 46.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.93e-05/10.65, allocations: 52.34 kB / 2.653 GB, free: 46.78 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001629/10.65, allocations: 116.8 kB / 2.653 GB, free: 46.78 MB / 346.7 MB Notification: Performance of pre-optimization done (n=179): time 5.991e-06/10.65, allocations: 0 / 2.653 GB, free: 46.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=234): time 0.3322/10.99, allocations: 19.55 MB / 2.672 GB, free: 45.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.91e-05/10.99, allocations: 130.1 kB / 2.672 GB, free: 45.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002319/10.99, allocations: 1.045 MB / 2.673 GB, free: 45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008067/10.99, allocations: 26.27 kB / 2.673 GB, free: 44.97 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.0009563/10.99, allocations: 0.9949 MB / 2.674 GB, free: 44.55 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00151/10.99, allocations: 0.7706 MB / 2.675 GB, free: 44.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004651/10.99, allocations: 0 / 2.675 GB, free: 44.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002407/10.99, allocations: 415.7 kB / 2.675 GB, free: 43.74 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004388/11, allocations: 1.8 MB / 2.677 GB, free: 43.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0051/11, allocations: 2.27 MB / 2.679 GB, free: 43.24 MB / 346.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.03824/11.04, allocations: 6.579 MB / 2.686 GB, free: 43.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.138e-05/11.04, allocations: 2.562 kB / 2.686 GB, free: 43.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=314) (initialization): time 0.02859/11.07, allocations: 6.648 MB / 2.692 GB, free: 42.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.968e-05/11.07, allocations: 8.406 kB / 2.692 GB, free: 42.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.208e-05/11.07, allocations: 16.41 kB / 2.692 GB, free: 42.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02059/11.09, allocations: 4.269 MB / 2.697 GB, free: 42.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002899/11.09, allocations: 339.5 kB / 2.697 GB, free: 42.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02371/11.12, allocations: 8.003 MB / 2.705 GB, free: 41.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006771/11.12, allocations: 356.2 kB / 2.705 GB, free: 41.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001121/11.13, allocations: 141.1 kB / 2.705 GB, free: 41.11 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. Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.tank.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real $DER.heater.mediums[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real [1] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.tank.ports[2].p:DUMMY_DER(flow=false fixed = false ) "Thermodynamic pressure in the connection point" type: Real [2] $DER.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real 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 (153): * Single equations (assignments): 148 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 2 {2 11,19 125} Notification: Performance of prepare postOptimizeDAE: time 0.001545/11.13, allocations: 177.8 kB / 2.705 GB, free: 40.98 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03534/11.16, allocations: 5.709 MB / 2.711 GB, free: 40.72 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001639/11.16, allocations: 203.9 kB / 2.711 GB, free: 40.62 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0446/11.21, allocations: 10.04 MB / 2.721 GB, free: 39.6 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02691/11.24, allocations: 8.778 MB / 2.729 GB, free: 34.61 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-05/11.24, allocations: 0 / 2.729 GB, free: 34.61 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0262/11.26, allocations: 8.921 MB / 2.738 GB, free: 26.75 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3342/11.6, allocations: 16.21 MB / 2.754 GB, free: 62.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.463e-05/11.6, allocations: 1.859 kB / 2.754 GB, free: 62.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003725/11.6, allocations: 404.3 kB / 2.754 GB, free: 62.1 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01234/11.61, allocations: 3.466 MB / 2.758 GB, free: 62.01 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008993/11.61, allocations: 80.11 kB / 2.758 GB, free: 62.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01823/11.63, allocations: 9.414 MB / 2.767 GB, free: 57.87 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2716/11.9, allocations: 54.33 MB / 2.82 GB, free: 48.51 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0338/11.94, allocations: 12.43 MB / 2.832 GB, free: 42.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003479/11.94, allocations: 0.8937 MB / 2.833 GB, free: 41.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001054/11.94, allocations: 16.39 kB / 2.833 GB, free: 41.49 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005659/11.95, allocations: 279.3 kB / 2.833 GB, free: 41.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001231/11.95, allocations: 251.9 kB / 2.834 GB, free: 41.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004884/11.95, allocations: 112.2 kB / 2.834 GB, free: 41.11 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001646/11.95, allocations: 0.7731 MB / 2.835 GB, free: 40.64 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.432e-06/11.95, allocations: 0 / 2.835 GB, free: 40.64 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.02823/11.98, allocations: 5.205 MB / 2.84 GB, free: 36.23 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 ($STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 40 ($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,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,$cse45.phase,$cse48.phase,$cse53.phase,$cse53.region,$cse56.phase,$cse56.region,$cse57.phase,$cse60.phase,$cse60.region,$cse63.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (207): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,2 9,2 4,1 1,4 16,2 12,1 1,7 33} Notification: Performance of Backend phase and start with SimCode phase: time 0.4109/12.39, allocations: 17.99 MB / 2.857 GB, free: 61.53 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.02019/12.41, allocations: 5.57 MB / 2.863 GB, free: 61.42 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.938e-06/12.41, allocations: 1.828 kB / 2.863 GB, free: 61.42 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01409/12.42, allocations: 3.858 MB / 2.866 GB, free: 61.4 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009867/12.43, allocations: 0.9508 MB / 2.867 GB, free: 61.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04004/12.47, allocations: 9.517 MB / 2.877 GB, free: 59.39 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003745/12.48, allocations: 2.336 MB / 2.879 GB, free: 58.62 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004149/12.48, allocations: 1.389 MB / 2.88 GB, free: 58.62 MB / 346.7 MB Notification: Performance of SimCode: time 1.743e-06/12.48, allocations: 0 / 2.88 GB, free: 58.62 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.741/21.22, allocations: 230.7 MB / 3.106 GB, free: 89.46 MB / 378.7 MB