Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.149/2.149, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.368e-05/2.405e-05, allocations: 0 / 309.7 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3242, allocations: 54.86 MB / 364.5 MB, free: 5.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.268/6.592, allocations: 2.664 GB / 3.02 GB, free: 112.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/6.592, allocations: 78.39 kB / 3.02 GB, free: 112.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.272/8.864, allocations: 0.489 GB / 3.509 GB, free: 38.46 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.541e-06/8.864, allocations: 1.156 kB / 3.509 GB, free: 38.46 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002098/8.864, allocations: 39.3 kB / 3.509 GB, free: 38.46 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01281/8.877, allocations: 2.989 MB / 3.512 GB, free: 37.91 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/8.877, allocations: 10.19 kB / 3.512 GB, free: 37.91 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007122/8.884, allocations: 0.7032 MB / 3.512 GB, free: 37.8 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005495/8.89, allocations: 1.575 MB / 3.514 GB, free: 37.52 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003102/8.89, allocations: 176.1 kB / 3.514 GB, free: 37.52 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008663/8.891, allocations: 176.5 kB / 3.514 GB, free: 37.51 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01079/8.902, allocations: 3.521 MB / 3.518 GB, free: 37.06 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.556e-05/8.902, allocations: 8.297 kB / 3.518 GB, free: 37.06 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003967/8.903, allocations: 76.17 kB / 3.518 GB, free: 37.06 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002703/8.903, allocations: 172.4 kB / 3.518 GB, free: 37.06 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01004/8.913, allocations: 3.332 MB / 3.521 GB, free: 37.04 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02365/8.937, allocations: 14.13 MB / 3.535 GB, free: 29.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00632/8.943, allocations: 2.153 MB / 3.537 GB, free: 29.16 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002228/8.945, allocations: 1.077 MB / 3.538 GB, free: 29.12 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1513/9.097, allocations: 63.65 MB / 3.6 GB, free: 22.16 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00498/9.102, allocations: 1.684 MB / 3.602 GB, free: 22.02 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=154): time 6.436e-06/9.102, allocations: 0 / 3.602 GB, free: 22.02 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.02451/9.126, allocations: 8.145 MB / 3.61 GB, free: 20.41 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001997/9.126, allocations: 281.5 kB / 3.61 GB, free: 20.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002188/9.129, allocations: 1.176 MB / 3.611 GB, free: 19.92 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004542/9.129, allocations: 57.86 kB / 3.611 GB, free: 19.89 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006427/9.13, allocations: 0.8183 MB / 3.612 GB, free: 19.43 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006714/9.13, allocations: 0.5947 MB / 3.613 GB, free: 19.05 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/9.131, allocations: 47.19 kB / 3.613 GB, free: 19.05 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002564/9.131, allocations: 398.1 kB / 3.613 GB, free: 18.73 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002213/9.133, allocations: 1.141 MB / 3.614 GB, free: 18.73 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002753/9.136, allocations: 1.702 MB / 3.616 GB, free: 18.09 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002888/9.139, allocations: 1.375 MB / 3.617 GB, free: 18.04 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.34e-05/9.139, allocations: 3 kB / 3.617 GB, free: 18.04 MB / 0.5105 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.008509/9.147, allocations: 3.904 MB / 3.621 GB, free: 17.89 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.003354/9.151, allocations: 6.28 MB / 3.627 GB, free: 27.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.002e-05/9.151, allocations: 14.66 kB / 3.627 GB, free: 27.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0203/9.171, allocations: 3.439 MB / 3.631 GB, free: 27.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001844/9.173, allocations: 333.7 kB / 3.631 GB, free: 27.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007826/9.181, allocations: 3.816 MB / 3.635 GB, free: 26.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003413/9.184, allocations: 272.7 kB / 3.635 GB, free: 26.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004056/9.185, allocations: 108.2 kB / 3.635 GB, free: 26.59 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/9.185, allocations: 3.719 kB / 3.635 GB, free: 26.59 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007869/9.193, allocations: 3.579 MB / 3.639 GB, free: 26.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.444e-05/9.193, allocations: 19.06 kB / 3.639 GB, free: 26.51 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01122/9.204, allocations: 2.187 MB / 3.641 GB, free: 26.45 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002104/9.206, allocations: 364.4 kB / 3.641 GB, free: 26.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005287/9.212, allocations: 3.104 MB / 3.644 GB, free: 25.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002754/9.214, allocations: 265.7 kB / 3.644 GB, free: 25.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003832/9.215, allocations: 104.3 kB / 3.645 GB, free: 25.85 MB / 0.5261 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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.0007583/9.216, allocations: 226.8 kB / 3.645 GB, free: 25.73 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004711/9.216, allocations: 167.6 kB / 3.645 GB, free: 25.65 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.011/9.227, allocations: 6.764 MB / 3.651 GB, free: 25.01 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.238e-05/9.227, allocations: 82.69 kB / 3.652 GB, free: 25 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/9.227, allocations: 0 / 3.652 GB, free: 25 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008359/9.236, allocations: 5.442 MB / 3.657 GB, free: 24.26 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01621/9.252, allocations: 9.463 MB / 3.666 GB, free: 20.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.31e-05/9.252, allocations: 4.969 kB / 3.666 GB, free: 20.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002917/9.255, allocations: 435.8 kB / 3.667 GB, free: 20.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002229/9.257, allocations: 445.2 kB / 3.667 GB, free: 20.62 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004582/9.258, allocations: 66.42 kB / 3.667 GB, free: 20.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002728/9.26, allocations: 3.21 MB / 3.67 GB, free: 17.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.158e-06/9.26, allocations: 5.031 kB / 3.67 GB, free: 17.73 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01174/9.272, allocations: 6.747 MB / 3.677 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002032/9.274, allocations: 0.7712 MB / 3.678 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005569/9.275, allocations: 52.73 kB / 3.678 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002477/9.277, allocations: 213.4 kB / 3.678 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004653/9.278, allocations: 179.4 kB / 3.678 GB, free: 13.82 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002091/9.278, allocations: 71.25 kB / 3.678 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002107/9.28, allocations: 1.216 MB / 3.679 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.104e-06/9.28, allocations: 0 / 3.679 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009631/9.29, allocations: 2.354 MB / 3.682 GB, free: 10.34 MB / 0.5261 GB 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,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.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 () * 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.009978/9.3, allocations: 2.032 MB / 3.683 GB, free: 8.754 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01268/9.312, allocations: 5.079 MB / 3.688 GB, free: 4.32 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/9.313, allocations: 4.062 kB / 3.688 GB, free: 4.316 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005156/9.318, allocations: 2.273 MB / 3.691 GB, free: 2.293 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005306/9.323, allocations: 0.7844 MB / 3.691 GB, free: 1.73 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3156/9.639, allocations: 5.755 MB / 3.697 GB, free: 79.79 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002215/9.641, allocations: 2.044 MB / 3.699 GB, free: 79.04 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/9.642, allocations: 169 kB / 3.699 GB, free: 79.04 MB / 0.5261 GB Notification: Performance of SimCode: time 1.912e-06/9.642, allocations: 0 / 3.699 GB, free: 79.04 MB / 0.5261 GB Notification: Performance of Templates: time 0.1265/9.769, allocations: 87.34 MB / 3.785 GB, free: 75.38 MB / 0.5261 GB