Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial") Notification: Performance of loadModel(ModelicaTest): time 1.911/1.911, allocations: 209.3 MB / 222.4 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.223e-05/3.242e-05, allocations: 4 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08834/0.0884, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.165/6.254, allocations: 2.56 GB / 2.878 GB, free: 66.02 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/6.254, allocations: 77.27 kB / 2.878 GB, free: 65.98 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.855/11.11, allocations: 0.9967 GB / 3.875 GB, free: 24.7 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.554e-06/11.11, allocations: 0 / 3.875 GB, free: 24.7 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003178/11.11, allocations: 74.86 kB / 3.875 GB, free: 24.69 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 670 * Number of variables: 670 Notification: Performance of Generate backend data structure: time 0.01645/11.13, allocations: 4.264 MB / 3.879 GB, free: 22.69 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/11.13, allocations: 10.69 kB / 3.879 GB, free: 22.69 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01038/11.14, allocations: 0.9829 MB / 3.88 GB, free: 22.53 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007943/11.14, allocations: 2.254 MB / 3.883 GB, free: 22.04 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004375/11.14, allocations: 285.3 kB / 3.883 GB, free: 21.97 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00116/11.15, allocations: 247.3 kB / 3.883 GB, free: 21.96 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01338/11.16, allocations: 4.466 MB / 3.888 GB, free: 21.36 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.109e-05/11.16, allocations: 6.312 kB / 3.888 GB, free: 21.36 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004924/11.16, allocations: 110.9 kB / 3.888 GB, free: 21.36 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003432/11.16, allocations: 224.8 kB / 3.888 GB, free: 21.35 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01237/11.17, allocations: 4.047 MB / 3.892 GB, free: 21.32 MB / 474.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.03316/11.21, allocations: 19.02 MB / 3.91 GB, free: 10.48 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008102/11.21, allocations: 2.78 MB / 3.913 GB, free: 10.42 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003362/11.22, allocations: 1.478 MB / 3.915 GB, free: 10.41 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04044/11.26, allocations: 17.05 MB / 3.931 GB, free: 15.55 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.137e-05/11.26, allocations: 58.34 kB / 3.931 GB, free: 15.51 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001994/11.26, allocations: 242.5 kB / 3.931 GB, free: 15.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=194): time 7.268e-06/11.26, allocations: 0 / 3.931 GB, free: 15.4 MB / 490.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: pump.medium.p 2: tank.medium.h 3: heater.mediums[1].p 4: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=215): time 0.05946/11.32, allocations: 13.12 MB / 3.944 GB, free: 14.25 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/11.32, allocations: 131.5 kB / 3.944 GB, free: 14.11 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00344/11.32, allocations: 1.66 MB / 3.946 GB, free: 13.87 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005689/11.32, allocations: 67.33 kB / 3.946 GB, free: 13.84 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000781/11.32, allocations: 1.064 MB / 3.947 GB, free: 13.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009491/11.33, allocations: 0.7283 MB / 3.948 GB, free: 12.83 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002958/11.33, allocations: 51.53 kB / 3.948 GB, free: 12.83 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000289/11.33, allocations: 407.4 kB / 3.948 GB, free: 12.52 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002929/11.33, allocations: 1.317 MB / 3.95 GB, free: 12.51 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003618/11.33, allocations: 1.812 MB / 3.951 GB, free: 11.97 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003544/11.34, allocations: 1.537 MB / 3.953 GB, free: 11.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-05/11.34, allocations: 6.594 kB / 3.953 GB, free: 11.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01004/11.35, allocations: 3.92 MB / 3.957 GB, free: 8.711 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002602/11.35, allocations: 5.315 MB / 3.962 GB, free: 2.992 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.802e-05/11.35, allocations: 12 kB / 3.962 GB, free: 2.98 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006033/11.35, allocations: 1.147 MB / 3.963 GB, free: 2.078 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003468/11.36, allocations: 0.532 MB / 3.964 GB, free: 1.625 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007346/11.37, allocations: 5.708 MB / 3.969 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00414/11.37, allocations: 312.2 kB / 3.969 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007604/11.37, allocations: 122.6 kB / 3.969 GB, free: 11.67 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/11.37, allocations: 4 kB / 3.969 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01049/11.38, allocations: 3.496 MB / 3.973 GB, free: 8.621 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.241e-05/11.38, allocations: 16 kB / 3.973 GB, free: 8.605 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002684/11.38, allocations: 0.6176 MB / 3.974 GB, free: 8.086 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003886/11.39, allocations: 0.5889 MB / 3.974 GB, free: 7.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.348/11.74, allocations: 8.43 MB / 3.982 GB, free: 52.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00303/11.74, allocations: 314.8 kB / 3.983 GB, free: 52.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004449/11.74, allocations: 117.2 kB / 3.983 GB, free: 52.55 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 19 (radiator.state_b.phase,radiator.state_a.phase,heater.state_b.phase,heater.state_a.phase,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 257 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 5,1 1,2 7,1 1,4 14,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008497/11.74, allocations: 252.4 kB / 3.983 GB, free: 52.45 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007611/11.74, allocations: 237.1 kB / 3.983 GB, free: 52.45 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01708/11.76, allocations: 9.378 MB / 3.992 GB, free: 51.83 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001239/11.76, allocations: 105.6 kB / 3.992 GB, free: 51.83 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/11.76, allocations: 0 / 3.992 GB, free: 51.83 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01469/11.77, allocations: 8.258 MB / 4.001 GB, free: 50.92 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02579/11.8, allocations: 13.6 MB / 4.014 GB, free: 50.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.328e-05/11.8, allocations: 4.891 kB / 4.014 GB, free: 50.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002592/11.8, allocations: 410.1 kB / 4.014 GB, free: 50.14 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008025/11.81, allocations: 2.678 MB / 4.017 GB, free: 50.01 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000577/11.81, allocations: 77.97 kB / 4.017 GB, free: 50.01 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006446/11.82, allocations: 6.924 MB / 4.024 GB, free: 45.87 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.417e-06/11.82, allocations: 3.953 kB / 4.024 GB, free: 45.87 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01713/11.83, allocations: 9.964 MB / 4.033 GB, free: 45.12 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002458/11.84, allocations: 0.8261 MB / 4.034 GB, free: 44.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007589/11.84, allocations: 56.98 kB / 4.034 GB, free: 44.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00303/11.84, allocations: 264.2 kB / 4.035 GB, free: 44.82 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005936/11.84, allocations: 197.9 kB / 4.035 GB, free: 44.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002903/11.84, allocations: 88.27 kB / 4.035 GB, free: 44.81 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002524/11.84, allocations: 1.317 MB / 4.036 GB, free: 44.65 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.36e-07/11.84, allocations: 1.75 kB / 4.036 GB, free: 44.65 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01284/11.86, allocations: 3.073 MB / 4.039 GB, free: 44.62 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (tank.medium.h,tank.level,heater.mediums[1].p,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: 58 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.region3boundary,$cse20.region3boundary,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse35.phase,$cse35.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (208): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 25 * 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 {2 4,1 1,2 9,1 1,4 18,1 1,1 10,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01261/11.87, allocations: 3.064 MB / 4.042 GB, free: 44.29 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01445/11.88, allocations: 6.341 MB / 4.048 GB, free: 43.85 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.444e-06/11.88, allocations: 2.531 kB / 4.048 GB, free: 43.85 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006331/11.89, allocations: 2.956 MB / 4.051 GB, free: 43.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006879/11.9, allocations: 1.082 MB / 4.052 GB, free: 43.78 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01647/11.91, allocations: 7.405 MB / 4.059 GB, free: 42.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002786/11.92, allocations: 2.522 MB / 4.062 GB, free: 41.64 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001304/11.92, allocations: 232.6 kB / 4.062 GB, free: 41.63 MB / 0.4948 GB Notification: Performance of SimCode: time 2.002e-06/11.92, allocations: 0 / 4.062 GB, free: 41.63 MB / 0.4948 GB Notification: Performance of Templates: time 0.5791/12.5, allocations: 187.6 MB / 4.245 GB, free: 67.71 MB / 0.5105 GB