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.949/1.949, allocations: 209.3 MB / 224.9 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004527/0.0004529, allocations: 12 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.286, allocations: 48.7 MB / 331.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.365/6.651, allocations: 2.56 GB / 2.883 GB, free: 109.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/6.651, allocations: 80.83 kB / 2.883 GB, free: 109.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.317/10.97, allocations: 0.9995 GB / 3.883 GB, free: 3.652 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.8e-06/10.97, allocations: 4 kB / 3.883 GB, free: 3.648 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003136/10.97, allocations: 75.92 kB / 3.883 GB, free: 3.574 MB / 490.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.3517/11.32, allocations: 4.562 MB / 3.887 GB, free: 29.44 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/11.32, allocations: 9.75 kB / 3.887 GB, free: 29.44 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01056/11.33, allocations: 0.9855 MB / 3.888 GB, free: 29.28 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007679/11.34, allocations: 2.272 MB / 3.89 GB, free: 28.93 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000383/11.34, allocations: 281.2 kB / 3.891 GB, free: 28.86 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001101/11.34, allocations: 249 kB / 3.891 GB, free: 28.86 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01379/11.35, allocations: 4.497 MB / 3.895 GB, free: 28.25 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.629e-05/11.35, allocations: 11.97 kB / 3.895 GB, free: 28.25 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005111/11.35, allocations: 107.7 kB / 3.895 GB, free: 28.25 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003109/11.35, allocations: 227.7 kB / 3.896 GB, free: 28.24 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01365/11.37, allocations: 4.195 MB / 3.9 GB, free: 28.21 MB / 490.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.0324/11.4, allocations: 19.02 MB / 3.918 GB, free: 17.56 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009038/11.41, allocations: 2.889 MB / 3.921 GB, free: 17.51 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04019/11.45, allocations: 17 MB / 3.938 GB, free: 23 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.308e-05/11.45, allocations: 57.27 kB / 3.938 GB, free: 22.96 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002/11.45, allocations: 246.2 kB / 3.938 GB, free: 22.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=194): time 8.051e-06/11.45, allocations: 0 / 3.938 GB, free: 22.9 MB / 0.4948 GB 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: heater.mediums[1].p 3: tank.medium.h 4: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=215): time 0.07648/11.53, allocations: 17.84 MB / 3.955 GB, free: 20.59 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/11.53, allocations: 128.2 kB / 3.956 GB, free: 20.46 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00335/11.53, allocations: 1.683 MB / 3.957 GB, free: 20.24 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005519/11.53, allocations: 63.83 kB / 3.957 GB, free: 20.21 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000776/11.53, allocations: 1.061 MB / 3.958 GB, free: 19.68 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000902/11.53, allocations: 0.7296 MB / 3.959 GB, free: 19.21 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002751/11.53, allocations: 49.56 kB / 3.959 GB, free: 19.21 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002728/11.53, allocations: 408.8 kB / 3.96 GB, free: 18.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003705/11.54, allocations: 1.447 MB / 3.961 GB, free: 18.89 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00459/11.54, allocations: 1.943 MB / 3.963 GB, free: 18.37 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004574/11.55, allocations: 1.645 MB / 3.964 GB, free: 18.35 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-05/11.55, allocations: 10.73 kB / 3.964 GB, free: 18.35 MB / 0.4948 GB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01261/11.56, allocations: 4.196 MB / 3.969 GB, free: 18.16 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002653/11.56, allocations: 5.322 MB / 3.974 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.311e-05/11.56, allocations: 13.53 kB / 3.974 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006448/11.57, allocations: 1.201 MB / 3.975 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003387/11.57, allocations: 0.531 MB / 3.975 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007368/11.58, allocations: 5.764 MB / 3.981 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004291/11.59, allocations: 313.9 kB / 3.981 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007009/11.59, allocations: 119.5 kB / 3.981 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/11.59, allocations: 2.594 kB / 3.981 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0111/11.6, allocations: 3.752 MB / 3.985 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.437e-05/11.6, allocations: 13.47 kB / 3.985 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002745/11.6, allocations: 0.6364 MB / 3.986 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003778/11.6, allocations: 0.5912 MB / 3.986 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01041/11.61, allocations: 8.527 MB / 3.995 GB, free: 17.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003233/11.62, allocations: 309.2 kB / 3.995 GB, free: 17.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004568/11.62, allocations: 112.3 kB / 3.995 GB, free: 17.6 MB / 0.5105 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 () * Number of clocked 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.002521/11.62, allocations: 0.802 MB / 3.996 GB, free: 17.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007244/11.62, allocations: 237.3 kB / 3.996 GB, free: 17.28 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01804/11.64, allocations: 9.471 MB / 4.005 GB, free: 16.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001093/11.64, allocations: 106 kB / 4.005 GB, free: 16.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/11.64, allocations: 0 / 4.005 GB, free: 16.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01472/11.65, allocations: 8.336 MB / 4.014 GB, free: 15.63 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02769/11.68, allocations: 13.75 MB / 4.027 GB, free: 14.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.057e-05/11.68, allocations: 2.094 kB / 4.027 GB, free: 14.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002697/11.68, allocations: 406.2 kB / 4.027 GB, free: 14.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008219/11.69, allocations: 2.316 MB / 4.03 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005905/11.69, allocations: 72.42 kB / 4.03 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008068/11.7, allocations: 7.012 MB / 4.037 GB, free: 9.559 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.754e-06/11.7, allocations: 4.656 kB / 4.037 GB, free: 9.559 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0203/11.72, allocations: 10.34 MB / 4.047 GB, free: 5.039 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002813/11.72, allocations: 0.8258 MB / 4.047 GB, free: 4.535 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009598/11.73, allocations: 59.86 kB / 4.048 GB, free: 4.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003458/11.73, allocations: 260.3 kB / 4.048 GB, free: 4.449 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007721/11.73, allocations: 200.8 kB / 4.048 GB, free: 4.426 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003141/11.73, allocations: 84.45 kB / 4.048 GB, free: 4.406 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003045/11.73, allocations: 1.337 MB / 4.049 GB, free: 3.895 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.059e-06/11.73, allocations: 0 / 4.049 GB, free: 3.895 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01302/11.75, allocations: 3.069 MB / 4.052 GB, free: 3.543 MB / 0.5105 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 () * Number of clocked 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.0129/11.76, allocations: 3.067 MB / 4.055 GB, free: 3.125 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01772/11.78, allocations: 6.677 MB / 4.062 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/11.78, allocations: 4 kB / 4.062 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007684/11.79, allocations: 3.045 MB / 4.065 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00677/11.79, allocations: 1.084 MB / 4.066 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02231/11.81, allocations: 10.6 MB / 4.076 GB, free: 2.59 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003312/11.82, allocations: 2.523 MB / 4.079 GB, free: 0.6367 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001326/11.82, allocations: 229 kB / 4.079 GB, free: 440 kB / 0.5261 GB Notification: Performance of SimCode: time 2.353e-06/11.82, allocations: 0 / 4.079 GB, free: 440 kB / 0.5261 GB Notification: Performance of Templates: time 0.5826/12.4, allocations: 187.9 MB / 4.262 GB, free: 15.64 MB / 0.5417 GB