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.DynamicPipeClosingValve.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.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadModel(ModelicaTest): time 1.852/1.852, allocations: 209.2 MB / 224.8 MB, free: 212 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004276/0.0004277, allocations: 12 kB / 282.5 MB, free: 9.645 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2796, allocations: 48.7 MB / 331.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve): time 0.05415/0.3338, allocations: 39.74 MB / 370.9 MB, free: 6.727 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03891/0.3728, allocations: 22.38 MB / 393.3 MB, free: 316 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001447/0.3742, allocations: 39.69 kB / 393.3 MB, free: 276 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001626/0.3759, allocations: 0.4978 MB / 393.8 MB, free: 15.77 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0167/0.3926, allocations: 4.686 MB / 398.5 MB, free: 11.07 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01399/0.4066, allocations: 4.038 MB / 402.6 MB, free: 7.023 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003594/0.4102, allocations: 1.82 MB / 404.4 MB, free: 5.203 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009293/0.4112, allocations: 497.8 kB / 404.9 MB, free: 4.703 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01846/0.4297, allocations: 9.009 MB / 413.9 MB, free: 11.69 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02702/0.4567, allocations: 14.16 MB / 428 MB, free: 13.52 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002409/0.457, allocations: 48 kB / 428.1 MB, free: 13.47 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01983/0.4769, allocations: 8.155 MB / 436.2 MB, free: 5.309 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005128/0.4774, allocations: 267.2 kB / 436.5 MB, free: 5.047 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004591/0.4779, allocations: 229.2 kB / 436.7 MB, free: 4.816 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009318/0.4872, allocations: 4.066 MB / 440.8 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.29e-06/0.4873, allocations: 0 / 440.8 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.52e-06/0.4873, allocations: 0 / 440.8 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.974e-05/0.4873, allocations: 4 kB / 440.8 MB, free: 0.7383 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.006041/0.4934, allocations: 1.902 MB / 442.7 MB, free: 14.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.4934, allocations: 12.03 kB / 442.7 MB, free: 14.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003292/0.4967, allocations: 362.4 kB / 443.1 MB, free: 14.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001715/0.4985, allocations: 0.6992 MB / 443.8 MB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001114/0.4986, allocations: 65.98 kB / 443.8 MB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000177/0.4988, allocations: 75.98 kB / 443.9 MB, free: 13.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004382/0.5032, allocations: 1.463 MB / 445.4 MB, free: 12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.923e-05/0.5033, allocations: 7.938 kB / 445.4 MB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/0.5034, allocations: 35.94 kB / 445.4 MB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001259/0.5036, allocations: 65.95 kB / 445.5 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004535/0.5081, allocations: 1.342 MB / 446.8 MB, free: 10.54 MB / 378.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.01116/0.5193, allocations: 6.538 MB / 453.3 MB, free: 3.461 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00382/0.5231, allocations: 1.027 MB / 454.4 MB, free: 2.406 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3001/0.8233, allocations: 32.39 MB / 486.8 MB, free: 137 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/0.8234, allocations: 41.06 kB / 486.8 MB, free: 136.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 4.322e-06/0.8234, allocations: 0 / 486.8 MB, free: 136.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=60): time 0.01228/0.8357, allocations: 3.324 MB / 490.1 MB, free: 136 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/0.8358, allocations: 162.4 kB / 490.3 MB, free: 135.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001258/0.8371, allocations: 0.7128 MB / 491 MB, free: 135.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001294/0.8372, allocations: 37.2 kB / 491 MB, free: 135.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002728/0.8375, allocations: 442 kB / 491.5 MB, free: 135.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002032/0.8377, allocations: 206.8 kB / 491.7 MB, free: 134.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.257e-05/0.8378, allocations: 15.31 kB / 491.7 MB, free: 134.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.605e-05/0.8379, allocations: 346.7 kB / 492 MB, free: 134.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.8391, allocations: 414.8 kB / 492.4 MB, free: 134.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001197/0.8403, allocations: 0.622 MB / 493 MB, free: 134.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.8416, allocations: 483.7 kB / 493.5 MB, free: 133.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.916e-06/0.8416, allocations: 6.219 kB / 493.5 MB, free: 133.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003574/0.8452, allocations: 1.304 MB / 494.8 MB, free: 133.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001312/0.8453, allocations: 272.5 kB / 495.1 MB, free: 133.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.8454, allocations: 5.812 kB / 495.1 MB, free: 133.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004682/0.8501, allocations: 0.6782 MB / 495.8 MB, free: 133 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008906/0.851, allocations: 159.1 kB / 495.9 MB, free: 133 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002164/0.8532, allocations: 1.301 MB / 497.2 MB, free: 132.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.8543, allocations: 104.6 kB / 497.3 MB, free: 132.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.8544, allocations: 44.06 kB / 497.4 MB, free: 132.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.8545, allocations: 4.469 kB / 497.4 MB, free: 132.2 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003482/0.858, allocations: 1.228 MB / 498.6 MB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.858, allocations: 6.125 kB / 498.6 MB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002091/0.8601, allocations: 437.8 kB / 499 MB, free: 131.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008331/0.861, allocations: 172.7 kB / 499.2 MB, free: 131.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001531/0.8625, allocations: 1.097 MB / 0.4886 GB, free: 130.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008119/0.8634, allocations: 102.6 kB / 0.4887 GB, free: 130.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/0.8635, allocations: 40.36 kB / 0.4887 GB, free: 130.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 9 (pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.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 (69): * Single equations (assignments): 68 * 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 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0006218/0.8641, allocations: 370.4 kB / 0.4891 GB, free: 130.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002687/0.8644, allocations: 85.06 kB / 0.4892 GB, free: 130.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005511/0.8699, allocations: 3.332 MB / 0.4924 GB, free: 128.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.849e-05/0.87, allocations: 37.12 kB / 0.4924 GB, free: 128.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.87, allocations: 3.938 kB / 0.4924 GB, free: 128.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00402/0.874, allocations: 2.785 MB / 0.4952 GB, free: 126.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007332/0.8814, allocations: 4.564 MB / 0.4996 GB, free: 124.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.8815, allocations: 7.188 kB / 0.4996 GB, free: 124.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000937/0.8824, allocations: 173.2 kB / 0.4998 GB, free: 124.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000567/0.883, allocations: 93.7 kB / 0.4999 GB, free: 124.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.068e-05/0.8831, allocations: 23.3 kB / 0.4999 GB, free: 124.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000433/0.8835, allocations: 0.6489 MB / 0.5005 GB, free: 123.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.711e-06/0.8836, allocations: 0 / 0.5005 GB, free: 123.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004602/0.8882, allocations: 2.902 MB / 0.5034 GB, free: 120.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000751/0.889, allocations: 454.2 kB / 0.5038 GB, free: 120.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001977/0.8892, allocations: 12 kB / 0.5038 GB, free: 120.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009152/0.8901, allocations: 91.48 kB / 0.5039 GB, free: 120.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001566/0.8903, allocations: 64.38 kB / 0.504 GB, free: 120 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.971e-05/0.8904, allocations: 24 kB / 0.504 GB, free: 120 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001161/0.8915, allocations: 0.7863 MB / 0.5048 GB, free: 119.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.99e-07/0.8915, allocations: 4 kB / 0.5048 GB, free: 119.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004311/0.8959, allocations: 1.62 MB / 0.5063 GB, free: 117.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005846/0.9017, allocations: 1.573 MB / 0.5079 GB, free: 116.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004096/0.9059, allocations: 1.849 MB / 0.5097 GB, free: 114.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.255e-06/0.9059, allocations: 0 / 0.5097 GB, free: 114.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001543/0.9075, allocations: 0.8967 MB / 0.5106 GB, free: 113.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003505/0.911, allocations: 478.3 kB / 0.511 GB, free: 113.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009132/0.9202, allocations: 3.774 MB / 0.5147 GB, free: 109.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001366/0.9216, allocations: 1.333 MB / 0.516 GB, free: 108 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005602/0.9222, allocations: 83.42 kB / 0.5161 GB, free: 107.9 MB / 410.7 MB Notification: Performance of SimCode: time 2.178e-06/0.9222, allocations: 0 / 0.5161 GB, free: 107.9 MB / 410.7 MB Notification: Performance of Templates: time 0.09306/1.015, allocations: 45.59 MB / 0.5606 GB, free: 62.34 MB / 410.7 MB