Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization.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.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestOverdeterminedInitial_DynamicPipeLumpedPressureInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.95/1.95, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006851/0.0006853, allocations: 16 kB / 282.6 MB, free: 9.602 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.362/0.3627, allocations: 48.7 MB / 331.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization): time 0.06456/0.4273, allocations: 39.97 MB / 371.2 MB, free: 6.469 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04502/0.4724, allocations: 22.34 MB / 393.6 MB, free: 88 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001576/0.474, allocations: 35.69 kB / 393.6 MB, free: 52 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002412/0.4765, allocations: 0.4939 MB / 394.1 MB, free: 15.55 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01974/0.4962, allocations: 4.531 MB / 398.6 MB, free: 11.01 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01703/0.5133, allocations: 4.1 MB / 402.7 MB, free: 6.902 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005845/0.5192, allocations: 2.614 MB / 405.4 MB, free: 4.281 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001852/0.5211, allocations: 0.7794 MB / 406.1 MB, free: 3.492 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1417/0.6628, allocations: 50.4 MB / 456.5 MB, free: 1.07 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3966/1.059, allocations: 19.68 MB / 476.2 MB, free: 72.58 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005307/1.06, allocations: 72.84 kB / 476.3 MB, free: 72.58 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02246/1.083, allocations: 8.081 MB / 484.4 MB, free: 72.58 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00113/1.084, allocations: 499.3 kB / 484.8 MB, free: 72.58 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006761/1.084, allocations: 369.8 kB / 485.2 MB, free: 72.55 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01158/1.096, allocations: 4.783 MB / 490 MB, free: 72.29 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/1.096, allocations: 0 / 490 MB, free: 72.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.284e-06/1.096, allocations: 0 / 490 MB, free: 72.29 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.04e-05/1.096, allocations: 3.969 kB / 490 MB, free: 72.29 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.01008/1.106, allocations: 2.54 MB / 492.5 MB, free: 70.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/1.106, allocations: 11.44 kB / 492.5 MB, free: 70.93 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007212/1.107, allocations: 219.1 kB / 492.8 MB, free: 70.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005743/1.113, allocations: 0.5654 MB / 493.3 MB, free: 70.63 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0029/1.116, allocations: 1.013 MB / 494.3 MB, free: 70.15 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001997/1.116, allocations: 136.3 kB / 494.5 MB, free: 70.14 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004259/1.116, allocations: 140.1 kB / 494.6 MB, free: 70.13 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009145/1.126, allocations: 2.728 MB / 497.3 MB, free: 69.16 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.334e-05/1.126, allocations: 10.52 kB / 497.3 MB, free: 69.15 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000265/1.126, allocations: 57.17 kB / 497.4 MB, free: 69.15 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001938/1.126, allocations: 122.6 kB / 497.5 MB, free: 69.13 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01018/1.136, allocations: 2.698 MB / 0.4885 GB, free: 67.25 MB / 394.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.01906/1.155, allocations: 10.91 MB / 0.4992 GB, free: 57.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006905/1.162, allocations: 1.845 MB / 0.501 GB, free: 55.86 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2203/1.383, allocations: 62.48 MB / 0.562 GB, free: 4.16 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005958/1.389, allocations: 1.424 MB / 0.5634 GB, free: 3.027 MB / 410.7 MB Notification: Performance of pre-optimization done (n=127): time 6.041e-06/1.389, allocations: 0 / 0.5634 GB, free: 3.027 MB / 410.7 MB Notification: Performance of matching and sorting (n=151): time 0.03434/1.423, allocations: 8.43 MB / 0.5716 GB, free: 12.38 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002054/1.423, allocations: 277.1 kB / 0.5719 GB, free: 12.05 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002179/1.426, allocations: 1.007 MB / 0.5728 GB, free: 11.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003179/1.426, allocations: 57.67 kB / 0.5729 GB, free: 11.23 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007227/1.427, allocations: 0.6721 MB / 0.5736 GB, free: 10.71 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007161/1.427, allocations: 0.5126 MB / 0.5741 GB, free: 10.28 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/1.428, allocations: 37 kB / 0.5741 GB, free: 10.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00024/1.428, allocations: 387.8 kB / 0.5745 GB, free: 9.914 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003362/1.431, allocations: 1.001 MB / 0.5754 GB, free: 9.227 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003807/1.435, allocations: 1.522 MB / 0.5769 GB, free: 7.867 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.354/7.789, allocations: 0.5489 GB / 1.126 GB, free: 54.39 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.85e-05/7.789, allocations: 8 kB / 1.126 GB, free: 54.39 MB / 474.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.01019/7.799, allocations: 3.376 MB / 1.129 GB, free: 51.06 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002976/7.8, allocations: 0.5171 MB / 1.13 GB, free: 50.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.506e-05/7.8, allocations: 12 kB / 1.13 GB, free: 50.33 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02045/7.82, allocations: 2.661 MB / 1.132 GB, free: 47.67 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001882/7.822, allocations: 279.5 kB / 1.132 GB, free: 47.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008463/7.83, allocations: 3.258 MB / 1.136 GB, free: 44.13 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003031/7.834, allocations: 214.8 kB / 1.136 GB, free: 43.94 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003983/7.834, allocations: 87.97 kB / 1.136 GB, free: 43.85 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/7.834, allocations: 4 kB / 1.136 GB, free: 43.85 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01145/7.845, allocations: 3.397 MB / 1.139 GB, free: 40.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-05/7.846, allocations: 16 kB / 1.139 GB, free: 40.43 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2902/8.136, allocations: 1.953 MB / 1.141 GB, free: 196.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002155/8.138, allocations: 301.2 kB / 1.141 GB, free: 196.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00858/8.147, allocations: 2.981 MB / 1.144 GB, free: 195.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002675/8.149, allocations: 202.3 kB / 1.145 GB, free: 195.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003522/8.15, allocations: 92.69 kB / 1.145 GB, free: 195.8 MB / 474.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: $DER.pipe.mediums[2].p = 0.0 $DER.pipe.mediums[3].p = 0.0 $DER.pipe.mediums[4].p = 0.0 $DER.pipe.mediums[1].p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 146 * 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 {6 79} Notification: Performance of prepare postOptimizeDAE: time 0.001646/8.151, allocations: 0.6042 MB / 1.145 GB, free: 195.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004739/8.152, allocations: 140.8 kB / 1.145 GB, free: 195.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01417/8.166, allocations: 5.829 MB / 1.151 GB, free: 193.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-05/8.166, allocations: 54.95 kB / 1.151 GB, free: 193.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/8.166, allocations: 4.094 kB / 1.151 GB, free: 193.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01048/8.177, allocations: 4.72 MB / 1.156 GB, free: 191.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01812/8.195, allocations: 8.16 MB / 1.164 GB, free: 187.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.602e-05/8.195, allocations: 4.688 kB / 1.164 GB, free: 187.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001902/8.197, allocations: 257.3 kB / 1.164 GB, free: 187.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008191/8.205, allocations: 1.333 MB / 1.165 GB, free: 186.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000353/8.205, allocations: 57.08 kB / 1.165 GB, free: 186.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003838/8.209, allocations: 2.191 MB / 1.167 GB, free: 185.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/8.209, allocations: 7.469 kB / 1.167 GB, free: 185.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01402/8.223, allocations: 5.639 MB / 1.173 GB, free: 179.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003055/8.226, allocations: 0.6143 MB / 1.174 GB, free: 179.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001028/8.228, allocations: 47.94 kB / 1.174 GB, free: 179.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004433/8.232, allocations: 166.9 kB / 1.174 GB, free: 179 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008089/8.233, allocations: 149.1 kB / 1.174 GB, free: 178.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003285/8.233, allocations: 63.62 kB / 1.174 GB, free: 178.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003736/8.237, allocations: 0.9537 MB / 1.175 GB, free: 177.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.523e-06/8.237, allocations: 0 / 1.175 GB, free: 177.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01491/8.252, allocations: 1.961 MB / 1.177 GB, free: 176 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (pipe.mediums[1].h,pipe.mediums[2].h,pipe.mediums[3].h,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 31 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$whenCondition2,$whenCondition1,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 1 * 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 {10 39} Notification: Performance of Backend phase and start with SimCode phase: time 0.02649/8.279, allocations: 7.641 MB / 1.184 GB, free: 168.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01344/8.292, allocations: 4.357 MB / 1.189 GB, free: 164.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.298e-05/8.292, allocations: 4 kB / 1.189 GB, free: 164.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005391/8.298, allocations: 1.906 MB / 1.19 GB, free: 162.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006101/8.304, allocations: 0.6525 MB / 1.191 GB, free: 161.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01844/8.322, allocations: 8.318 MB / 1.199 GB, free: 153 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001501/8.324, allocations: 1.73 MB / 1.201 GB, free: 151.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001651/8.325, allocations: 0.839 MB / 1.202 GB, free: 150.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.333e-06/8.325, allocations: 0 / 1.202 GB, free: 150.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.198/12.52, allocations: 64.26 MB / 1.264 GB, free: 86.06 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization_res.mat does not exist to compare? outputFormat=mat