Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 1.85/1.85, allocations: 209.3 MB / 224.8 MB, free: 280 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007909/0.0007911, allocations: 16 kB / 282.5 MB, free: 9.645 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.31, allocations: 48.7 MB / 331.2 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization): time 0.05564/0.3657, allocations: 39.98 MB / 371.2 MB, free: 6.469 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0386/0.4043, allocations: 22.35 MB / 393.5 MB, free: 80 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/0.4059, allocations: 39.62 kB / 393.6 MB, free: 40 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001897/0.4078, allocations: 0.4978 MB / 394.1 MB, free: 15.54 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01674/0.4246, allocations: 4.523 MB / 398.6 MB, free: 11 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01462/0.4392, allocations: 4.087 MB / 402.7 MB, free: 6.91 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005316/0.4446, allocations: 3.013 MB / 405.7 MB, free: 3.891 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001609/0.4462, allocations: 0.85 MB / 406.5 MB, free: 3.016 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.09781/0.544, allocations: 50.14 MB / 456.7 MB, free: 0.8516 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.277/0.8211, allocations: 19.83 MB / 476.5 MB, free: 72.42 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004154/0.8216, allocations: 83.59 kB / 476.6 MB, free: 72.42 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01745/0.839, allocations: 8.115 MB / 484.7 MB, free: 72.42 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009498/0.84, allocations: 0.6399 MB / 485.3 MB, free: 72.42 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006783/0.8407, allocations: 449.9 kB / 485.8 MB, free: 72.39 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009004/0.8498, allocations: 5.236 MB / 491 MB, free: 71.95 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.367e-06/0.8498, allocations: 0 / 491 MB, free: 71.95 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.737e-06/0.8498, allocations: 2.078 kB / 491 MB, free: 71.95 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.596e-05/0.8499, allocations: 3.531 kB / 491 MB, free: 71.95 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.00889/0.8588, allocations: 3.039 MB / 494.1 MB, free: 70.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.8588, allocations: 13.52 kB / 494.1 MB, free: 70.2 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005696/0.8645, allocations: 0.6666 MB / 494.7 MB, free: 69.95 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002368/0.8669, allocations: 1.191 MB / 495.9 MB, free: 69.42 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001779/0.8671, allocations: 160.8 kB / 496.1 MB, free: 69.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003946/0.8675, allocations: 176.3 kB / 496.3 MB, free: 69.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008205/0.8757, allocations: 3.564 MB / 499.8 MB, free: 67.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.189e-05/0.8758, allocations: 8.125 kB / 499.8 MB, free: 67.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002733/0.8761, allocations: 74.84 kB / 499.9 MB, free: 67.21 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002374/0.8764, allocations: 222.7 kB / 0.4884 GB, free: 67.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008977/0.8854, allocations: 3.528 MB / 0.4918 GB, free: 64.51 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.01846/0.9039, allocations: 14.12 MB / 0.5056 GB, free: 51.77 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00659/0.9105, allocations: 2.292 MB / 0.5079 GB, free: 50.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1365/1.047, allocations: 64.24 MB / 0.5706 GB, free: 11.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00557/1.053, allocations: 1.726 MB / 0.5723 GB, free: 10.17 MB / 426.7 MB Notification: Performance of pre-optimization done (n=154): time 6.009e-06/1.053, allocations: 0 / 0.5723 GB, free: 10.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=174): time 0.02812/1.081, allocations: 9.488 MB / 0.5816 GB, free: 2.852 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001934/1.081, allocations: 282.3 kB / 0.5818 GB, free: 2.516 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002353/1.083, allocations: 1.316 MB / 0.5831 GB, free: 1.531 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003099/1.084, allocations: 60.03 kB / 0.5832 GB, free: 1.492 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007686/1.085, allocations: 0.826 MB / 0.584 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007633/1.085, allocations: 0.5996 MB / 0.5846 GB, free: 368 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001868/1.086, allocations: 47.56 kB / 0.5846 GB, free: 360 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002779/1.086, allocations: 406.6 kB / 0.585 GB, free: 15.98 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003181/1.089, allocations: 1.282 MB / 0.5862 GB, free: 15.1 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003752/1.093, allocations: 1.875 MB / 0.5881 GB, free: 13.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00357/1.096, allocations: 1.515 MB / 0.5896 GB, free: 12.48 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.456e-05/1.096, allocations: 4 kB / 0.5896 GB, free: 12.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.01051/1.107, allocations: 4.296 MB / 0.5938 GB, free: 9.578 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005697/1.108, allocations: 0.5897 MB / 0.5943 GB, free: 8.816 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.472e-05/1.108, allocations: 16 kB / 0.5943 GB, free: 8.801 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02093/1.129, allocations: 3.749 MB / 0.598 GB, free: 5.457 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/1.13, allocations: 347.1 kB / 0.5983 GB, free: 5.156 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008973/1.139, allocations: 4.059 MB / 0.6023 GB, free: 2.184 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00276/1.142, allocations: 272.4 kB / 0.6026 GB, free: 1.949 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003483/1.142, allocations: 111.1 kB / 0.6027 GB, free: 1.863 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/1.142, allocations: 4 kB / 0.6027 GB, free: 1.859 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01043/1.153, allocations: 3.983 MB / 0.6066 GB, free: 15.19 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.755e-05/1.153, allocations: 16.97 kB / 0.6066 GB, free: 15.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01177/1.165, allocations: 2.394 MB / 0.6089 GB, free: 12.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001841/1.167, allocations: 380.5 kB / 0.6093 GB, free: 12.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00714/1.174, allocations: 3.338 MB / 0.6125 GB, free: 9.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002278/1.176, allocations: 271.4 kB / 0.6128 GB, free: 8.805 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002907/1.176, allocations: 108 kB / 0.6129 GB, free: 8.699 MB / 458.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * 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.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].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 (171): * Single equations (assignments): 170 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.001675/1.178, allocations: 0.6983 MB / 0.6136 GB, free: 8.016 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004433/1.179, allocations: 160.9 kB / 0.6137 GB, free: 7.859 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01375/1.192, allocations: 6.841 MB / 0.6204 GB, free: 0.9961 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001009/1.192, allocations: 83.84 kB / 0.6205 GB, free: 0.9141 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/1.193, allocations: 0 / 0.6205 GB, free: 0.9141 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01065/1.203, allocations: 5.489 MB / 0.6259 GB, free: 11.32 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01858/1.222, allocations: 9.523 MB / 0.6352 GB, free: 1.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.677e-05/1.222, allocations: 0 / 0.6352 GB, free: 1.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002421/1.224, allocations: 442.8 kB / 0.6356 GB, free: 1.352 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002409/1.227, allocations: 470.1 kB / 0.636 GB, free: 0.8789 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002389/1.227, allocations: 75.91 kB / 0.6361 GB, free: 0.8047 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2258/1.453, allocations: 3.211 MB / 0.6392 GB, free: 191.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.761e-06/1.453, allocations: 1.375 kB / 0.6392 GB, free: 191.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01404/1.467, allocations: 7.032 MB / 0.6461 GB, free: 189.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001734/1.469, allocations: 0.7616 MB / 0.6468 GB, free: 189.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004178/1.469, allocations: 54.61 kB / 0.6469 GB, free: 189.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001896/1.471, allocations: 205.4 kB / 0.6471 GB, free: 189.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004461/1.472, allocations: 185.1 kB / 0.6473 GB, free: 189.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002035/1.472, allocations: 72.39 kB / 0.6473 GB, free: 189.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002141/1.474, allocations: 1.23 MB / 0.6485 GB, free: 188.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.45e-07/1.474, allocations: 3.562 kB / 0.6485 GB, free: 188.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007174/1.481, allocations: 2.204 MB / 0.6507 GB, free: 188.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse34.phase,$cse34.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].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 (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006772/1.488, allocations: 1.547 MB / 0.6522 GB, free: 188.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0129/1.501, allocations: 5.518 MB / 0.6576 GB, free: 186.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/1.501, allocations: 0.75 kB / 0.6576 GB, free: 186.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004543/1.505, allocations: 2.367 MB / 0.6599 GB, free: 185.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004543/1.51, allocations: 0.7793 MB / 0.6607 GB, free: 185.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01284/1.523, allocations: 8.233 MB / 0.6687 GB, free: 179.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001655/1.525, allocations: 2.048 MB / 0.6707 GB, free: 177.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008918/1.526, allocations: 167.4 kB / 0.6709 GB, free: 177.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.731e-06/1.526, allocations: 0 / 0.6709 GB, free: 177.5 MB / 474.7 MB Notification: Performance of Templates: time 0.1326/1.658, allocations: 86.48 MB / 0.7553 GB, free: 90.89 MB / 474.7 MB