Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.584/2.584, allocations: 235 MB / 248 MB, free: 14.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.516e-05/3.525e-05, allocations: 4 kB / 309.8 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4348/0.4348, allocations: 54.85 MB / 364.6 MB, free: 5.512 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.127/8.562, allocations: 2.67 GB / 3.026 GB, free: 88.59 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/8.563, allocations: 79.33 kB / 3.026 GB, free: 88.55 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.447/14.01, allocations: 1.022 GB / 4.049 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.264e-06/14.01, allocations: 4 kB / 4.049 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003454/14.01, allocations: 63.98 kB / 4.049 GB, free: 24.5 MB / 0.5105 GB 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.02205/14.03, allocations: 4.401 MB / 4.053 GB, free: 20.04 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/14.03, allocations: 12.03 kB / 4.053 GB, free: 20.03 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002049/14.03, allocations: 416.2 kB / 4.053 GB, free: 19.61 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01192/14.05, allocations: 1.034 MB / 4.054 GB, free: 18.57 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009824/14.06, allocations: 2.258 MB / 4.057 GB, free: 16.26 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005333/14.06, allocations: 280.2 kB / 4.057 GB, free: 15.97 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001505/14.06, allocations: 248 kB / 4.057 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01507/14.07, allocations: 4.48 MB / 4.062 GB, free: 11.02 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001022/14.07, allocations: 7.938 kB / 4.062 GB, free: 11.01 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005275/14.07, allocations: 104 kB / 4.062 GB, free: 10.91 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003799/14.07, allocations: 224.8 kB / 4.062 GB, free: 10.69 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01435/14.09, allocations: 4.048 MB / 4.066 GB, free: 6.625 MB / 0.5105 GB 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.0457/14.13, allocations: 19.04 MB / 4.084 GB, free: 2.07 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4787/14.61, allocations: 2.77 MB / 4.087 GB, free: 41 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004642/14.62, allocations: 1.483 MB / 4.089 GB, free: 40.99 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05668/14.67, allocations: 17.06 MB / 4.105 GB, free: 30.49 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.415e-05/14.67, allocations: 56.25 kB / 4.105 GB, free: 30.45 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002634/14.68, allocations: 237.7 kB / 4.105 GB, free: 30.45 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=194): time 1.327e-05/14.68, allocations: 1.531 kB / 4.105 GB, free: 30.45 MB / 0.5261 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: 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.07647/14.75, allocations: 13.11 MB / 4.118 GB, free: 29.69 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.956e-05/14.75, allocations: 127.7 kB / 4.118 GB, free: 29.56 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003775/14.76, allocations: 1.656 MB / 4.12 GB, free: 29.33 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007063/14.76, allocations: 64.58 kB / 4.12 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009381/14.76, allocations: 1.076 MB / 4.121 GB, free: 28.88 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001344/14.76, allocations: 0.7336 MB / 4.122 GB, free: 28.51 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003213/14.76, allocations: 44.56 kB / 4.122 GB, free: 28.51 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001913/14.76, allocations: 406.3 kB / 4.122 GB, free: 28.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003527/14.76, allocations: 1.319 MB / 4.124 GB, free: 28.19 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00424/14.77, allocations: 1.821 MB / 4.125 GB, free: 27.66 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004377/14.77, allocations: 1.533 MB / 4.127 GB, free: 27.64 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-05/14.77, allocations: 2.812 kB / 4.127 GB, free: 27.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01197/14.79, allocations: 3.926 MB / 4.131 GB, free: 27.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001215/14.79, allocations: 5.315 MB / 4.136 GB, free: 21.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.312e-05/14.79, allocations: 14.47 kB / 4.136 GB, free: 21.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007027/14.79, allocations: 1.136 MB / 4.137 GB, free: 21.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004699/14.8, allocations: 0.5323 MB / 4.138 GB, free: 21.85 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006354/14.8, allocations: 5.705 MB / 4.143 GB, free: 17.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005358/14.81, allocations: 319.6 kB / 4.143 GB, free: 17.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009576/14.81, allocations: 118.7 kB / 4.143 GB, free: 17.68 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/14.81, allocations: 4.625 kB / 4.144 GB, free: 17.68 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01157/14.82, allocations: 3.504 MB / 4.147 GB, free: 17.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-05/14.82, allocations: 10.5 kB / 4.147 GB, free: 17.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002947/14.83, allocations: 0.6183 MB / 4.148 GB, free: 17.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005284/14.83, allocations: 0.5891 MB / 4.148 GB, free: 17.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009793/14.84, allocations: 8.436 MB / 4.156 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004417/14.85, allocations: 314.9 kB / 4.157 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005642/14.85, allocations: 110.7 kB / 4.157 GB, free: 10.92 MB / 0.5261 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.001074/14.85, allocations: 258.8 kB / 4.157 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009037/14.85, allocations: 235.7 kB / 4.157 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0192/14.87, allocations: 9.38 MB / 4.166 GB, free: 9.934 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001362/14.87, allocations: 103 kB / 4.166 GB, free: 9.934 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/14.87, allocations: 5.703 kB / 4.166 GB, free: 9.934 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01604/14.88, allocations: 8.254 MB / 4.175 GB, free: 9.016 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03223/14.92, allocations: 13.61 MB / 4.188 GB, free: 8.059 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-05/14.92, allocations: 0 / 4.188 GB, free: 8.059 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003731/14.92, allocations: 414 kB / 4.188 GB, free: 8.055 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0101/14.93, allocations: 2.68 MB / 4.191 GB, free: 7.922 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008321/14.93, allocations: 72.95 kB / 4.191 GB, free: 7.922 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008746/14.94, allocations: 6.925 MB / 4.198 GB, free: 19.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/14.94, allocations: 3.5 kB / 4.198 GB, free: 19.73 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02071/14.96, allocations: 9.959 MB / 4.207 GB, free: 18.91 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003272/14.96, allocations: 0.8273 MB / 4.208 GB, free: 18.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001026/14.96, allocations: 59.75 kB / 4.208 GB, free: 18.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004628/14.97, allocations: 258.5 kB / 4.209 GB, free: 18.54 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001077/14.97, allocations: 198.6 kB / 4.209 GB, free: 18.54 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004168/14.97, allocations: 91.19 kB / 4.209 GB, free: 18.54 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003961/14.98, allocations: 1.31 MB / 4.21 GB, free: 18.38 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.242e-06/14.98, allocations: 1.594 kB / 4.21 GB, free: 18.38 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01744/14.99, allocations: 3.099 MB / 4.213 GB, free: 18.25 MB / 0.5417 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.04059/15.03, allocations: 12.87 MB / 4.226 GB, free: 16.27 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01987/15.05, allocations: 6.346 MB / 4.232 GB, free: 13.9 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.243e-05/15.05, allocations: 2.406 kB / 4.232 GB, free: 13.9 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.008618/15.06, allocations: 2.96 MB / 4.235 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01263/15.07, allocations: 1.078 MB / 4.236 GB, free: 12.46 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02872/15.1, allocations: 8.946 MB / 4.245 GB, free: 9.402 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002896/15.11, allocations: 2.534 MB / 4.247 GB, free: 8.512 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003875/15.11, allocations: 1.53 MB / 4.249 GB, free: 7.289 MB / 0.5417 GB Notification: Performance of SimCode: time 1.122e-06/15.11, allocations: 0 / 4.249 GB, free: 7.289 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.329/21.44, allocations: 204.4 MB / 4.448 GB, free: 26.65 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial_res.mat does not exist to compare? outputFormat=mat