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.LumpedPipeInitialization.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.162/2.162, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.961e-05/1.975e-05, allocations: 4 kB / 303.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2743, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.547/6.821, allocations: 2.652 GB / 3.001 GB, free: 104 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/6.821, allocations: 81.88 kB / 3.001 GB, free: 104 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.374/10.19, allocations: 0.7337 GB / 3.735 GB, free: 43.34 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.286e-06/10.2, allocations: 0 / 3.735 GB, free: 43.34 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001504/10.2, allocations: 39.52 kB / 3.735 GB, free: 43.34 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01039/10.21, allocations: 2.756 MB / 3.738 GB, free: 42.34 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/10.21, allocations: 11.3 kB / 3.738 GB, free: 42.34 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00441/10.21, allocations: 480 kB / 3.738 GB, free: 42.27 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003492/10.21, allocations: 1.129 MB / 3.739 GB, free: 41.95 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/10.21, allocations: 111.7 kB / 3.74 GB, free: 41.88 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003411/10.21, allocations: 52.75 kB / 3.74 GB, free: 41.88 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003443/10.22, allocations: 1.338 MB / 3.741 GB, free: 41.88 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003489/10.22, allocations: 1.465 MB / 3.742 GB, free: 41.54 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.271e-05/10.22, allocations: 5.438 kB / 3.742 GB, free: 41.54 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001832/10.22, allocations: 5.438 kB / 3.742 GB, free: 41.54 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001256/10.22, allocations: 79.05 kB / 3.742 GB, free: 41.54 MB / 0.4948 GB 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.3154/10.54, allocations: 135.2 MB / 3.874 GB, free: 21.05 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002115/10.54, allocations: 0.9178 MB / 3.875 GB, free: 20.83 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008334/10.54, allocations: 375.8 kB / 3.876 GB, free: 20.82 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03937/10.58, allocations: 16.69 MB / 3.892 GB, free: 26.02 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00108/10.58, allocations: 0.4969 MB / 3.892 GB, free: 25.92 MB / 0.573 GB Notification: Performance of pre-optimization done (n=66): time 4.547e-06/10.58, allocations: 0 / 3.892 GB, free: 25.92 MB / 0.573 GB Notification: Performance of matching and sorting (n=70): time 0.0126/10.59, allocations: 3.111 MB / 3.896 GB, free: 25.15 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002182/10.59, allocations: 349.8 kB / 3.896 GB, free: 24.74 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/10.6, allocations: 0.8298 MB / 3.897 GB, free: 24.58 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000196/10.6, allocations: 28.89 kB / 3.897 GB, free: 24.55 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005006/10.6, allocations: 0.6436 MB / 3.897 GB, free: 24.16 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002735/10.6, allocations: 239.4 kB / 3.898 GB, free: 24.01 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.774e-05/10.6, allocations: 0 / 3.898 GB, free: 24.01 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001994/10.6, allocations: 363.5 kB / 3.898 GB, free: 23.69 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000979/10.6, allocations: 466.2 kB / 3.898 GB, free: 23.69 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001257/10.6, allocations: 0.9179 MB / 3.899 GB, free: 23.12 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/10.61, allocations: 1.647 MB / 3.901 GB, free: 23.07 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.228e-05/10.61, allocations: 11.08 kB / 3.901 GB, free: 23.07 MB / 0.573 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.01211/10.62, allocations: 2.63 MB / 3.903 GB, free: 22.96 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002557/10.62, allocations: 5.398 MB / 3.909 GB, free: 17.29 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.627e-05/10.62, allocations: 11.66 kB / 3.909 GB, free: 17.29 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003999/10.63, allocations: 0.7206 MB / 3.909 GB, free: 17.26 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/10.63, allocations: 243.2 kB / 3.91 GB, free: 17.26 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003706/10.63, allocations: 1.626 MB / 3.911 GB, free: 16.71 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002121/10.63, allocations: 126.7 kB / 3.911 GB, free: 16.69 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002559/10.64, allocations: 69.59 kB / 3.911 GB, free: 16.69 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/10.64, allocations: 3.375 kB / 3.911 GB, free: 16.69 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01174/10.65, allocations: 2.334 MB / 3.914 GB, free: 16.62 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-05/10.65, allocations: 11.81 kB / 3.914 GB, free: 16.62 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001514/10.65, allocations: 330 kB / 3.914 GB, free: 16.52 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001523/10.65, allocations: 284.3 kB / 3.914 GB, free: 16.32 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001633/10.65, allocations: 1.028 MB / 3.915 GB, free: 15.53 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001569/10.65, allocations: 109.4 kB / 3.915 GB, free: 15.45 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000179/10.65, allocations: 69.8 kB / 3.915 GB, free: 15.4 MB / 0.573 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: 62 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,source.medium.phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.00049/10.65, allocations: 159.3 kB / 3.916 GB, free: 15.26 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003182/10.65, allocations: 114.6 kB / 3.916 GB, free: 15.15 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005744/10.66, allocations: 2.889 MB / 3.919 GB, free: 13.6 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.78e-05/10.66, allocations: 35.94 kB / 3.919 GB, free: 13.59 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/10.66, allocations: 8 kB / 3.919 GB, free: 13.58 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-05/10.66, allocations: 3.703 kB / 3.919 GB, free: 13.58 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01466/10.68, allocations: 4.579 MB / 3.923 GB, free: 11.14 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.696e-05/10.68, allocations: 0 / 3.923 GB, free: 11.14 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/10.68, allocations: 130 kB / 3.923 GB, free: 11.05 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00984/10.69, allocations: 1.528 MB / 3.925 GB, free: 10.07 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002441/10.69, allocations: 12.86 kB / 3.925 GB, free: 10.06 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00502/10.69, allocations: 2.26 MB / 3.927 GB, free: 8.422 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.28e-05/10.69, allocations: 3.281 kB / 3.927 GB, free: 8.422 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0103/10.7, allocations: 3.325 MB / 3.93 GB, free: 6.57 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0015/10.7, allocations: 351.5 kB / 3.93 GB, free: 6.309 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004863/10.7, allocations: 5.312 kB / 3.93 GB, free: 6.305 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001627/10.71, allocations: 81.66 kB / 3.931 GB, free: 6.246 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002964/10.71, allocations: 55.83 kB / 3.931 GB, free: 6.219 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/10.71, allocations: 36.97 kB / 3.931 GB, free: 6.199 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001495/10.71, allocations: 0.6068 MB / 3.931 GB, free: 5.816 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.382e-06/10.71, allocations: 0 / 3.931 GB, free: 5.816 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01091/10.72, allocations: 1.911 MB / 3.933 GB, free: 4.039 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 20 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01485/10.73, allocations: 2.506 MB / 3.936 GB, free: 2.105 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.005512/10.74, allocations: 2.05 MB / 3.938 GB, free: 0.9727 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.475e-06/10.74, allocations: 0 / 3.938 GB, free: 0.9727 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001722/10.74, allocations: 0.8113 MB / 3.938 GB, free: 0.5742 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003109/10.74, allocations: 463.6 kB / 3.939 GB, free: 336 kB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4044/11.15, allocations: 2.403 MB / 3.941 GB, free: 119.2 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001238/11.15, allocations: 1.334 MB / 3.942 GB, free: 118.5 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005438/11.15, allocations: 109.5 kB / 3.943 GB, free: 118.4 MB / 0.573 GB Notification: Performance of SimCode: time 1.935e-06/11.15, allocations: 0.9062 kB / 3.943 GB, free: 118.4 MB / 0.573 GB Notification: Performance of Templates: time 0.08625/11.24, allocations: 55.06 MB / 3.996 GB, free: 115.5 MB / 0.573 GB