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.534/2.534, allocations: 234.9 MB / 250.5 MB, free: 9.684 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006169/0.0006169, allocations: 8 kB / 314.5 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3952/0.3959, allocations: 54.86 MB / 369.3 MB, free: 12.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.035/8.431, allocations: 2.67 GB / 3.031 GB, free: 62.92 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/8.432, allocations: 87.14 kB / 3.031 GB, free: 62.87 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.465/13.9, allocations: 1.025 GB / 4.056 GB, free: 6.223 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.096e-06/13.9, allocations: 0 / 4.056 GB, free: 6.223 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003876/13.9, allocations: 75.86 kB / 4.056 GB, free: 6.148 MB / 0.5261 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.02464/13.92, allocations: 4.695 MB / 4.061 GB, free: 1.383 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/13.92, allocations: 12.03 kB / 4.061 GB, free: 1.371 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002532/13.92, allocations: 436 kB / 4.061 GB, free: 0.9336 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4738/14.4, allocations: 1.023 MB / 4.062 GB, free: 31.16 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01201/14.41, allocations: 2.269 MB / 4.064 GB, free: 30.88 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005806/14.41, allocations: 290.4 kB / 4.065 GB, free: 30.81 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001618/14.41, allocations: 250.6 kB / 4.065 GB, free: 30.8 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01815/14.43, allocations: 4.503 MB / 4.069 GB, free: 30.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001475/14.43, allocations: 9.375 kB / 4.069 GB, free: 30.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001148/14.43, allocations: 111.2 kB / 4.07 GB, free: 30.2 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004166/14.43, allocations: 226.3 kB / 4.07 GB, free: 30.2 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01697/14.45, allocations: 4.2 MB / 4.074 GB, free: 30.16 MB / 0.5261 GB 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.04234/14.49, allocations: 19.04 MB / 4.092 GB, free: 19.51 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01174/14.5, allocations: 2.886 MB / 4.095 GB, free: 19.46 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05343/14.56, allocations: 17 MB / 4.112 GB, free: 24.95 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.86e-05/14.56, allocations: 59.22 kB / 4.112 GB, free: 24.91 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002849/14.56, allocations: 236 kB / 4.112 GB, free: 24.85 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=194): time 1.167e-05/14.56, allocations: 0 / 4.112 GB, free: 24.85 MB / 0.5417 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.1008/14.66, allocations: 17.85 MB / 4.13 GB, free: 22.58 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/14.66, allocations: 129.9 kB / 4.13 GB, free: 22.45 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003716/14.67, allocations: 1.673 MB / 4.131 GB, free: 22.24 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0007225/14.67, allocations: 67.08 kB / 4.131 GB, free: 22.21 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008798/14.67, allocations: 1.072 MB / 4.132 GB, free: 21.69 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001189/14.67, allocations: 0.7352 MB / 4.133 GB, free: 21.21 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002955/14.67, allocations: 42.31 kB / 4.133 GB, free: 21.21 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002612/14.67, allocations: 409.7 kB / 4.134 GB, free: 20.9 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00438/14.67, allocations: 1.448 MB / 4.135 GB, free: 20.89 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005164/14.68, allocations: 1.943 MB / 4.137 GB, free: 20.37 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005493/14.68, allocations: 1.648 MB / 4.138 GB, free: 20.35 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.438e-05/14.68, allocations: 5.844 kB / 4.138 GB, free: 20.35 MB / 0.5417 GB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01511/14.7, allocations: 4.2 MB / 4.143 GB, free: 20.16 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002617/14.7, allocations: 5.31 MB / 4.148 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.247e-05/14.7, allocations: 13.81 kB / 4.148 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00753/14.71, allocations: 1.205 MB / 4.149 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004523/14.71, allocations: 0.5288 MB / 4.149 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008409/14.72, allocations: 5.754 MB / 4.155 GB, free: 26.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005475/14.73, allocations: 311.9 kB / 4.155 GB, free: 26.38 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008717/14.73, allocations: 124.9 kB / 4.156 GB, free: 26.38 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/14.73, allocations: 4.312 kB / 4.156 GB, free: 26.38 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0133/14.74, allocations: 3.758 MB / 4.159 GB, free: 26.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.945e-05/14.74, allocations: 11.28 kB / 4.159 GB, free: 26.27 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003138/14.75, allocations: 0.6349 MB / 4.16 GB, free: 26.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005132/14.75, allocations: 0.5913 MB / 4.16 GB, free: 26.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01108/14.76, allocations: 8.524 MB / 4.169 GB, free: 19.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004042/14.77, allocations: 309.7 kB / 4.169 GB, free: 19.61 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005357/14.77, allocations: 110.5 kB / 4.169 GB, free: 19.61 MB / 0.5573 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.002978/14.77, allocations: 0.8082 MB / 4.17 GB, free: 19.41 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008966/14.77, allocations: 241 kB / 4.17 GB, free: 19.29 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02131/14.79, allocations: 9.455 MB / 4.179 GB, free: 18.52 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001394/14.79, allocations: 105 kB / 4.179 GB, free: 18.52 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/14.79, allocations: 2.875 kB / 4.179 GB, free: 18.52 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01778/14.81, allocations: 8.335 MB / 4.188 GB, free: 17.64 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03354/14.84, allocations: 13.75 MB / 4.201 GB, free: 16.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.843e-05/14.84, allocations: 0 / 4.201 GB, free: 16.67 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003664/14.85, allocations: 409.8 kB / 4.201 GB, free: 16.67 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01018/14.86, allocations: 2.313 MB / 4.204 GB, free: 16.53 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007829/14.86, allocations: 71.77 kB / 4.204 GB, free: 16.53 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008797/14.87, allocations: 7.015 MB / 4.211 GB, free: 12.34 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/14.87, allocations: 4.422 kB / 4.211 GB, free: 12.34 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02398/14.89, allocations: 10.34 MB / 4.221 GB, free: 9.613 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003234/14.89, allocations: 0.8291 MB / 4.222 GB, free: 9.105 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001105/14.9, allocations: 60.92 kB / 4.222 GB, free: 9.066 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004478/14.9, allocations: 262.3 kB / 4.222 GB, free: 9.02 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008876/14.9, allocations: 199.6 kB / 4.222 GB, free: 8.992 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003256/14.9, allocations: 83.47 kB / 4.222 GB, free: 8.977 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003133/14.9, allocations: 1.34 MB / 4.223 GB, free: 8.465 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.51e-07/14.9, allocations: 0 / 4.223 GB, free: 8.465 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0154/14.92, allocations: 3.094 MB / 4.226 GB, free: 8.109 MB / 0.5573 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.04048/14.96, allocations: 13.23 MB / 4.239 GB, free: 3.004 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02186/14.98, allocations: 6.658 MB / 4.246 GB, free: 0.625 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/14.98, allocations: 6.156 kB / 4.246 GB, free: 0.625 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01129/14.99, allocations: 3.179 MB / 4.249 GB, free: 15.93 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01025/15, allocations: 1.082 MB / 4.25 GB, free: 15.68 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5228/15.53, allocations: 22.46 MB / 4.272 GB, free: 68.59 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004584/15.53, allocations: 2.527 MB / 4.274 GB, free: 67.83 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003818/15.54, allocations: 1.53 MB / 4.276 GB, free: 67.83 MB / 0.573 GB Notification: Performance of SimCode: time 1.313e-06/15.54, allocations: 6.375 kB / 4.276 GB, free: 67.83 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.23/21.77, allocations: 201.2 MB / 4.472 GB, free: 80.68 MB / 0.5886 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