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: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.049/2.049, allocations: 209.2 MB / 224.8 MB, free: 304 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006524/0.0006523, allocations: 16 kB / 282.7 MB, free: 9.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3621/0.3628, allocations: 48.7 MB / 331.4 MB, free: 6.391 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.645/8.008, allocations: 2.56 GB / 2.883 GB, free: 97.15 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/8.008, allocations: 78.27 kB / 2.883 GB, free: 97.15 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.648/13.66, allocations: 0.9995 GB / 3.883 GB, free: 30.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.545e-06/13.66, allocations: 1.375 kB / 3.883 GB, free: 30.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004306/13.66, allocations: 68.05 kB / 3.883 GB, free: 30.3 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.02549/13.68, allocations: 4.585 MB / 3.887 GB, free: 29 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.1e-05/13.68, allocations: 9.5 kB / 3.887 GB, free: 29 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00293/13.69, allocations: 428.7 kB / 3.888 GB, free: 28.94 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0126/13.7, allocations: 0.9834 MB / 3.889 GB, free: 28.77 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01045/13.71, allocations: 2.272 MB / 3.891 GB, free: 28.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000621/13.71, allocations: 285.3 kB / 3.891 GB, free: 28.23 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001519/13.71, allocations: 251.6 kB / 3.891 GB, free: 28.23 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01821/13.73, allocations: 4.509 MB / 3.896 GB, free: 27.63 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001155/13.73, allocations: 11.73 kB / 3.896 GB, free: 27.62 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005893/13.73, allocations: 111.3 kB / 3.896 GB, free: 27.62 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004423/13.73, allocations: 220.2 kB / 3.896 GB, free: 27.62 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01719/13.75, allocations: 4.203 MB / 3.9 GB, free: 27.59 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.04375/13.79, allocations: 19.04 MB / 3.919 GB, free: 16.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01155/13.8, allocations: 2.887 MB / 3.922 GB, free: 16.75 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05533/13.86, allocations: 17 MB / 3.938 GB, free: 22.22 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.931e-05/13.86, allocations: 56.86 kB / 3.938 GB, free: 22.18 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002932/13.86, allocations: 237.2 kB / 3.939 GB, free: 22.08 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=194): time 1.236e-05/13.86, allocations: 0 / 3.939 GB, free: 22.08 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.1043/13.97, allocations: 17.84 MB / 3.956 GB, free: 19.76 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/13.97, allocations: 127 kB / 3.956 GB, free: 19.63 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004332/13.97, allocations: 1.678 MB / 3.958 GB, free: 19.4 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007588/13.97, allocations: 67.92 kB / 3.958 GB, free: 19.37 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001164/13.97, allocations: 1.075 MB / 3.959 GB, free: 18.83 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001452/13.97, allocations: 0.7327 MB / 3.96 GB, free: 18.36 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003625/13.97, allocations: 46.62 kB / 3.96 GB, free: 18.36 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000329/13.97, allocations: 407.7 kB / 3.96 GB, free: 18.05 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004914/13.98, allocations: 1.444 MB / 3.961 GB, free: 18.04 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005688/13.99, allocations: 1.944 MB / 3.963 GB, free: 17.52 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00558/13.99, allocations: 1.649 MB / 3.965 GB, free: 17.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-05/13.99, allocations: 6.344 kB / 3.965 GB, free: 17.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01625/14.01, allocations: 4.197 MB / 3.969 GB, free: 17.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002811/14.01, allocations: 5.312 MB / 3.974 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-05/14.01, allocations: 18.03 kB / 3.974 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007714/14.02, allocations: 1.207 MB / 3.975 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004582/14.02, allocations: 0.5229 MB / 3.976 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008499/14.03, allocations: 5.76 MB / 3.982 GB, free: 23.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005437/14.04, allocations: 313.2 kB / 3.982 GB, free: 23.53 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009479/14.04, allocations: 121 kB / 3.982 GB, free: 23.53 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/14.04, allocations: 2.688 kB / 3.982 GB, free: 23.53 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0137/14.05, allocations: 3.748 MB / 3.986 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-05/14.05, allocations: 12.97 kB / 3.986 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003268/14.05, allocations: 0.646 MB / 3.986 GB, free: 23.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005175/14.06, allocations: 0.5887 MB / 3.987 GB, free: 23.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01174/14.07, allocations: 8.521 MB / 3.995 GB, free: 16.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004187/14.08, allocations: 320.3 kB / 3.996 GB, free: 16.75 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006409/14.08, allocations: 115.5 kB / 3.996 GB, free: 16.75 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.003132/14.08, allocations: 0.8032 MB / 3.996 GB, free: 16.54 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008782/14.08, allocations: 232.9 kB / 3.997 GB, free: 16.43 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02159/14.1, allocations: 9.468 MB / 4.006 GB, free: 15.65 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000132/14.1, allocations: 108.2 kB / 4.006 GB, free: 15.65 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/14.1, allocations: 2.062 kB / 4.006 GB, free: 15.65 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01824/14.12, allocations: 8.335 MB / 4.014 GB, free: 14.77 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03311/14.15, allocations: 13.75 MB / 4.028 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.061e-05/14.15, allocations: 0 / 4.028 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003594/14.16, allocations: 407.4 kB / 4.028 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009752/14.17, allocations: 2.307 MB / 4.03 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007487/14.17, allocations: 75.36 kB / 4.03 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00911/14.18, allocations: 7.024 MB / 4.037 GB, free: 9.035 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/14.18, allocations: 0 / 4.037 GB, free: 9.035 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0242/14.2, allocations: 10.33 MB / 4.047 GB, free: 4.52 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003339/14.21, allocations: 0.8312 MB / 4.048 GB, free: 4.016 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001126/14.21, allocations: 67.03 kB / 4.048 GB, free: 3.977 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004574/14.21, allocations: 263.6 kB / 4.048 GB, free: 3.93 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009723/14.21, allocations: 190.7 kB / 4.049 GB, free: 3.906 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003526/14.21, allocations: 96.38 kB / 4.049 GB, free: 3.883 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003526/14.22, allocations: 1.336 MB / 4.05 GB, free: 3.367 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.62e-07/14.22, allocations: 0 / 4.05 GB, free: 3.367 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01721/14.23, allocations: 3.065 MB / 4.053 GB, free: 2.746 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.04365/14.28, allocations: 13.23 MB / 4.066 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02374/14.3, allocations: 6.654 MB / 4.072 GB, free: 4.453 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/14.3, allocations: 8.062 kB / 4.072 GB, free: 4.445 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01021/14.31, allocations: 3.045 MB / 4.075 GB, free: 1.777 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01124/14.32, allocations: 1.086 MB / 4.076 GB, free: 0.9922 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4714/14.79, allocations: 22.98 MB / 4.099 GB, free: 57.48 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004875/14.8, allocations: 2.524 MB / 4.101 GB, free: 56.72 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003902/14.8, allocations: 1.535 MB / 4.103 GB, free: 56.72 MB / 0.5261 GB Notification: Performance of SimCode: time 1.122e-06/14.8, allocations: 0 / 4.103 GB, free: 56.72 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.03/20.83, allocations: 201 MB / 4.299 GB, free: 69.3 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial_res.mat does not exist to compare? outputFormat=mat