Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.668/1.668, allocations: 171.2 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000387/0.0003872, allocations: 8 kB / 233.3 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08682/0.08726, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.819/7.906, allocations: 2.551 GB / 2.817 GB, free: 70.08 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/7.906, allocations: 86.36 kB / 2.817 GB, free: 70.08 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.578/13.48, allocations: 0.9991 GB / 3.816 GB, free: 21.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.745e-06/13.48, allocations: 0 / 3.816 GB, free: 21.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003571/13.48, allocations: 70.7 kB / 3.816 GB, free: 21.78 MB / 410.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.02272/13.51, allocations: 4.585 MB / 3.821 GB, free: 19.72 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/13.51, allocations: 9.719 kB / 3.821 GB, free: 19.72 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002351/13.51, allocations: 424 kB / 3.821 GB, free: 19.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0115/13.52, allocations: 0.9837 MB / 3.822 GB, free: 19.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009395/13.53, allocations: 2.218 MB / 3.824 GB, free: 19.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005466/13.53, allocations: 285.9 kB / 3.825 GB, free: 18.94 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001508/13.53, allocations: 252.2 kB / 3.825 GB, free: 18.94 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01703/13.55, allocations: 4.515 MB / 3.829 GB, free: 18.33 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001313/13.55, allocations: 9.875 kB / 3.829 GB, free: 18.33 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009265/13.55, allocations: 114 kB / 3.829 GB, free: 18.33 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004104/13.55, allocations: 222.7 kB / 3.83 GB, free: 18.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01634/13.57, allocations: 4.202 MB / 3.834 GB, free: 18.29 MB / 410.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.04277/13.61, allocations: 19.02 MB / 3.852 GB, free: 7.453 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01118/13.62, allocations: 2.884 MB / 3.855 GB, free: 7.398 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05377/13.68, allocations: 16.99 MB / 3.872 GB, free: 12.87 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.97e-05/13.68, allocations: 62.75 kB / 3.872 GB, free: 12.83 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002605/13.68, allocations: 237.4 kB / 3.872 GB, free: 12.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 1.152e-05/13.68, allocations: 0 / 3.872 GB, free: 12.73 MB / 426.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: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=215): time 0.07831/13.76, allocations: 15.93 MB / 3.888 GB, free: 10.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/13.76, allocations: 129.4 kB / 3.888 GB, free: 10.28 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003976/13.76, allocations: 1.68 MB / 3.889 GB, free: 10.05 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007443/13.76, allocations: 64.8 kB / 3.889 GB, free: 10.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00117/13.76, allocations: 1.154 MB / 3.891 GB, free: 9.535 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001286/13.76, allocations: 0.7269 MB / 3.891 GB, free: 9.07 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003325/13.76, allocations: 47.47 kB / 3.891 GB, free: 9.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002852/13.76, allocations: 403.1 kB / 3.892 GB, free: 8.766 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004657/13.77, allocations: 1.443 MB / 3.893 GB, free: 8.758 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005277/13.77, allocations: 1.946 MB / 3.895 GB, free: 8.23 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005329/13.78, allocations: 1.647 MB / 3.897 GB, free: 8.195 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-05/13.78, allocations: 6.781 kB / 3.897 GB, free: 8.191 MB / 426.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01663/13.8, allocations: 4.948 MB / 3.901 GB, free: 7.957 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002519/13.8, allocations: 5.542 MB / 3.907 GB, free: 2.129 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.888e-05/13.8, allocations: 13.19 kB / 3.907 GB, free: 2.129 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02622/13.83, allocations: 3.997 MB / 3.911 GB, free: 2.016 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002376/13.83, allocations: 310.7 kB / 3.911 GB, free: 2.016 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01625/13.84, allocations: 4.847 MB / 3.916 GB, free: 1.391 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005191/13.85, allocations: 317.8 kB / 3.916 GB, free: 1.348 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008563/13.85, allocations: 120.9 kB / 3.916 GB, free: 1.348 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/13.85, allocations: 4.969 kB / 3.916 GB, free: 1.348 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01447/13.87, allocations: 4.25 MB / 3.92 GB, free: 1.266 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.097e-05/13.87, allocations: 15.75 kB / 3.92 GB, free: 1.266 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01786/13.88, allocations: 2.847 MB / 3.923 GB, free: 1.172 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002906/13.89, allocations: 385.5 kB / 3.924 GB, free: 1.172 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/13.9, allocations: 3.78 MB / 3.927 GB, free: 0.5703 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004712/13.9, allocations: 306.4 kB / 3.928 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008201/13.9, allocations: 119 kB / 3.928 GB, free: 0.5312 MB / 426.7 MB 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 (166): * Single equations (assignments): 165 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 122} Notification: Performance of prepare postOptimizeDAE: time 0.00292/13.91, allocations: 0.7888 MB / 3.928 GB, free: 16.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008123/13.91, allocations: 239.4 kB / 3.929 GB, free: 16.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02312/13.93, allocations: 9.459 MB / 3.938 GB, free: 13.56 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001802/13.93, allocations: 105 kB / 3.938 GB, free: 13.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.791e-05/13.93, allocations: 0 / 3.938 GB, free: 13.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02079/13.95, allocations: 8.345 MB / 3.946 GB, free: 5.891 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4006/14.35, allocations: 13.74 MB / 3.96 GB, free: 49.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-05/14.35, allocations: 3.25 kB / 3.96 GB, free: 49.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003517/14.35, allocations: 408.8 kB / 3.96 GB, free: 49.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01079/14.37, allocations: 2.309 MB / 3.962 GB, free: 49.63 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007221/14.37, allocations: 76.08 kB / 3.962 GB, free: 49.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008726/14.38, allocations: 7 MB / 3.969 GB, free: 45.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/14.38, allocations: 2.469 kB / 3.969 GB, free: 45.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0245/14.4, allocations: 10.34 MB / 3.979 GB, free: 44.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003022/14.4, allocations: 0.8329 MB / 3.98 GB, free: 44.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001056/14.4, allocations: 54.73 kB / 3.98 GB, free: 44.77 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004492/14.41, allocations: 261.3 kB / 3.98 GB, free: 44.76 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001002/14.41, allocations: 200.7 kB / 3.981 GB, free: 44.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003704/14.41, allocations: 84.86 kB / 3.981 GB, free: 44.75 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003109/14.41, allocations: 1.338 MB / 3.982 GB, free: 44.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.91e-07/14.41, allocations: 0.5469 kB / 3.982 GB, free: 44.61 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01515/14.43, allocations: 3.049 MB / 3.985 GB, free: 44.61 MB / 442.7 MB 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.04047/14.47, allocations: 13.21 MB / 3.998 GB, free: 43.02 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02268/14.49, allocations: 6.495 MB / 4.004 GB, free: 42.84 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/14.49, allocations: 1.656 kB / 4.004 GB, free: 42.84 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008771/14.5, allocations: 3.062 MB / 4.007 GB, free: 42.79 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01015/14.51, allocations: 1.079 MB / 4.008 GB, free: 42.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03633/14.55, allocations: 22.48 MB / 4.03 GB, free: 28.36 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003592/14.55, allocations: 2.572 MB / 4.033 GB, free: 27.58 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006622/14.56, allocations: 1.918 MB / 4.035 GB, free: 27.53 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003478/14.56, allocations: 1.492 MB / 4.036 GB, free: 27.52 MB / 442.7 MB Notification: Performance of SimCode: time 2.485e-06/14.56, allocations: 0 / 4.036 GB, free: 27.52 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6809/15.24, allocations: 144.7 MB / 4.177 GB, free: 43.96 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000282/15.24, allocations: 194.3 kB / 4.177 GB, free: 43.72 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.39/24.63, allocations: 0 / 4.177 GB, free: 43.72 MB / 442.7 MB