Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.954/1.954, allocations: 209.2 MB / 225.4 MB, free: 1.469 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004531/0.0004534, allocations: 20 kB / 283.1 MB, free: 9.812 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1119, allocations: 48.71 MB / 331.8 MB, free: 9.02 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.782/7.894, allocations: 2.56 GB / 2.884 GB, free: 34 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000334/7.894, allocations: 86.08 kB / 2.884 GB, free: 33.96 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.516/13.41, allocations: 0.9995 GB / 3.883 GB, free: 23.81 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.026e-06/13.41, allocations: 1.859 kB / 3.883 GB, free: 23.81 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004251/13.41, allocations: 79.17 kB / 3.883 GB, free: 23.8 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.02389/13.43, allocations: 4.572 MB / 3.888 GB, free: 21.61 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/13.43, allocations: 9.375 kB / 3.888 GB, free: 21.61 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01171/13.45, allocations: 0.987 MB / 3.889 GB, free: 21.45 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01015/13.46, allocations: 2.272 MB / 3.891 GB, free: 20.96 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005513/13.46, allocations: 284.1 kB / 3.891 GB, free: 20.89 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001567/13.46, allocations: 245.5 kB / 3.891 GB, free: 20.89 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01755/13.48, allocations: 4.52 MB / 3.896 GB, free: 20.27 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001252/13.48, allocations: 10.31 kB / 3.896 GB, free: 20.27 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007715/13.48, allocations: 113.6 kB / 3.896 GB, free: 20.27 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003944/13.48, allocations: 218.1 kB / 3.896 GB, free: 20.25 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01672/13.49, allocations: 4.198 MB / 3.9 GB, free: 20.19 MB / 474.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.0425/13.54, allocations: 19.04 MB / 3.919 GB, free: 9.211 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01166/13.55, allocations: 2.885 MB / 3.922 GB, free: 9.156 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05673/13.61, allocations: 16.99 MB / 3.938 GB, free: 14.22 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.533e-05/13.61, allocations: 56.83 kB / 3.938 GB, free: 14.18 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002554/13.61, allocations: 238.5 kB / 3.939 GB, free: 14.07 MB / 490.7 MB Notification: Performance of pre-optimization done (n=194): time 7.063e-06/13.61, allocations: 4 kB / 3.939 GB, free: 14.07 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: 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.1036/13.71, allocations: 17.94 MB / 3.956 GB, free: 8.875 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/13.71, allocations: 128.6 kB / 3.956 GB, free: 8.73 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003836/13.72, allocations: 1.898 MB / 3.958 GB, free: 7.098 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000703/13.72, allocations: 72.42 kB / 3.958 GB, free: 7.023 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001066/13.72, allocations: 1.061 MB / 3.959 GB, free: 6.031 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001426/13.72, allocations: 0.7274 MB / 3.96 GB, free: 5.375 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000311/13.72, allocations: 52 kB / 3.96 GB, free: 5.324 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002873/13.72, allocations: 404.8 kB / 3.96 GB, free: 4.949 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00505/13.72, allocations: 1.451 MB / 3.962 GB, free: 3.746 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005947/13.73, allocations: 1.955 MB / 3.964 GB, free: 1.871 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005798/13.74, allocations: 1.647 MB / 3.965 GB, free: 440 kB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.079e-05/13.74, allocations: 4 kB / 3.965 GB, free: 436 kB / 490.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.02171/13.76, allocations: 4.529 MB / 3.97 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004719/13.76, allocations: 0.4913 MB / 3.97 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.061e-05/13.76, allocations: 12 kB / 3.97 GB, free: 12.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008743/13.77, allocations: 1.27 MB / 3.971 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004756/13.77, allocations: 0.5275 MB / 3.972 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008351/13.78, allocations: 5.759 MB / 3.978 GB, free: 5.883 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005427/13.79, allocations: 314.2 kB / 3.978 GB, free: 5.648 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009646/13.79, allocations: 123.5 kB / 3.978 GB, free: 5.539 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/13.79, allocations: 4 kB / 3.978 GB, free: 5.535 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0148/13.8, allocations: 3.745 MB / 3.982 GB, free: 2.305 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-05/13.8, allocations: 16.09 kB / 3.982 GB, free: 2.289 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00344/13.81, allocations: 0.6404 MB / 3.982 GB, free: 1.762 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005449/13.81, allocations: 0.5889 MB / 3.983 GB, free: 1.266 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4442/14.26, allocations: 8.526 MB / 3.991 GB, free: 46.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004191/14.26, allocations: 306.8 kB / 3.992 GB, free: 46.56 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004743/14.26, allocations: 114.6 kB / 3.992 GB, free: 46.56 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 () * 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.002791/14.26, allocations: 0.8035 MB / 3.992 GB, free: 46.37 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008666/14.26, allocations: 235.6 kB / 3.993 GB, free: 46.37 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02313/14.29, allocations: 9.465 MB / 4.002 GB, free: 45.79 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001235/14.29, allocations: 108 kB / 4.002 GB, free: 45.79 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/14.29, allocations: 0.5469 kB / 4.002 GB, free: 45.79 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01978/14.31, allocations: 8.338 MB / 4.01 GB, free: 44.91 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03225/14.34, allocations: 13.74 MB / 4.024 GB, free: 44.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.672e-05/14.34, allocations: 0 / 4.024 GB, free: 44.13 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003552/14.34, allocations: 406.8 kB / 4.024 GB, free: 44.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009889/14.35, allocations: 2.314 MB / 4.026 GB, free: 44 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007335/14.35, allocations: 74.59 kB / 4.026 GB, free: 44 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008027/14.36, allocations: 7.002 MB / 4.033 GB, free: 39.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/14.36, allocations: 3.531 kB / 4.033 GB, free: 39.84 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02484/14.39, allocations: 10.29 MB / 4.043 GB, free: 39.14 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003005/14.39, allocations: 0.8237 MB / 4.044 GB, free: 38.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00114/14.39, allocations: 58.22 kB / 4.044 GB, free: 38.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004483/14.4, allocations: 263.1 kB / 4.044 GB, free: 38.85 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009606/14.4, allocations: 197.1 kB / 4.044 GB, free: 38.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003341/14.4, allocations: 89.22 kB / 4.045 GB, free: 38.84 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003327/14.4, allocations: 1.337 MB / 4.046 GB, free: 38.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.823e-06/14.4, allocations: 0 / 4.046 GB, free: 38.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01584/14.42, allocations: 3.072 MB / 4.049 GB, free: 38.69 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 () * 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.017/14.43, allocations: 3.066 MB / 4.052 GB, free: 38.36 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02131/14.45, allocations: 6.657 MB / 4.058 GB, free: 37.91 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/14.45, allocations: 3.75 kB / 4.058 GB, free: 37.91 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008661/14.46, allocations: 3.053 MB / 4.061 GB, free: 37.86 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01023/14.47, allocations: 1.076 MB / 4.062 GB, free: 37.83 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02615/14.5, allocations: 10.6 MB / 4.073 GB, free: 34.03 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003949/14.5, allocations: 2.53 MB / 4.075 GB, free: 33.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001702/14.51, allocations: 232.3 kB / 4.075 GB, free: 33.26 MB / 0.4948 GB Notification: Performance of SimCode: time 1.443e-06/14.51, allocations: 0 / 4.075 GB, free: 33.26 MB / 0.4948 GB Notification: Performance of Templates: time 0.7664/15.27, allocations: 187.9 MB / 4.259 GB, free: 60.09 MB / 0.5105 GB