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.LumpedPipeInitialization.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 1.979/1.979, allocations: 209.4 MB / 217.3 MB, free: 4.141 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.813e-05/1.822e-05, allocations: 0 / 271.3 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2676, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.288/6.555, allocations: 2.541 GB / 2.854 GB, free: 94.82 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001929/6.556, allocations: 80.45 kB / 2.854 GB, free: 94.82 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.11/9.666, allocations: 0.7163 GB / 3.57 GB, free: 36.91 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.922e-06/9.666, allocations: 0 / 3.57 GB, free: 36.91 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001401/9.666, allocations: 33.53 kB / 3.57 GB, free: 36.91 MB / 458.7 MB 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.0103/9.677, allocations: 2.667 MB / 3.573 GB, free: 35.55 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/9.677, allocations: 10.59 kB / 3.573 GB, free: 35.55 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004347/9.681, allocations: 464 kB / 3.573 GB, free: 35.48 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003372/9.684, allocations: 1.122 MB / 3.574 GB, free: 35.16 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001681/9.685, allocations: 113.4 kB / 3.574 GB, free: 35.09 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003308/9.685, allocations: 56.62 kB / 3.574 GB, free: 35.09 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003243/9.688, allocations: 1.346 MB / 3.576 GB, free: 35.08 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003236/9.691, allocations: 1.458 MB / 3.577 GB, free: 34.74 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.433e-05/9.692, allocations: 9.781 kB / 3.577 GB, free: 34.74 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001952/9.692, allocations: 3.625 kB / 3.577 GB, free: 34.74 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001264/9.692, allocations: 79.84 kB / 3.577 GB, free: 34.74 MB / 458.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.5798/10.27, allocations: 135 MB / 3.709 GB, free: 27.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002024/10.27, allocations: 0.9264 MB / 3.71 GB, free: 26.98 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008258/10.27, allocations: 374.7 kB / 3.71 GB, free: 26.97 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03709/10.31, allocations: 16.7 MB / 3.727 GB, free: 16.18 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001069/10.31, allocations: 0.5015 MB / 3.727 GB, free: 16.07 MB / 490.7 MB Notification: Performance of pre-optimization done (n=66): time 4.356e-06/10.31, allocations: 0 / 3.727 GB, free: 16.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=70): time 0.0121/10.33, allocations: 3.101 MB / 3.73 GB, free: 15.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002341/10.33, allocations: 357.2 kB / 3.731 GB, free: 14.99 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001614/10.33, allocations: 0.8356 MB / 3.731 GB, free: 14.84 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002139/10.33, allocations: 25.7 kB / 3.731 GB, free: 14.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005247/10.33, allocations: 0.636 MB / 3.732 GB, free: 14.48 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003168/10.33, allocations: 243.8 kB / 3.732 GB, free: 14.36 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/10.33, allocations: 0 / 3.732 GB, free: 14.36 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002032/10.33, allocations: 354.8 kB / 3.733 GB, free: 14.05 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009739/10.33, allocations: 467.5 kB / 3.733 GB, free: 14.05 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/10.33, allocations: 0.9221 MB / 3.734 GB, free: 13.47 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009771/10.34, allocations: 1.651 MB / 3.736 GB, free: 13.43 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-05/10.34, allocations: 3.719 kB / 3.736 GB, free: 13.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.01263/10.35, allocations: 2.629 MB / 3.738 GB, free: 13.31 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003114/10.36, allocations: 5.407 MB / 3.743 GB, free: 23.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.294e-05/10.36, allocations: 14.69 kB / 3.743 GB, free: 23.65 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003847/10.36, allocations: 0.7155 MB / 3.744 GB, free: 23.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/10.36, allocations: 244.9 kB / 3.744 GB, free: 23.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003555/10.37, allocations: 1.62 MB / 3.746 GB, free: 23.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/10.37, allocations: 123.1 kB / 3.746 GB, free: 23.06 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001996/10.37, allocations: 66.75 kB / 3.746 GB, free: 23.06 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/10.37, allocations: 3.125 kB / 3.746 GB, free: 23.06 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01092/10.38, allocations: 2.336 MB / 3.748 GB, free: 23 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.756e-05/10.38, allocations: 13.47 kB / 3.748 GB, free: 23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/10.38, allocations: 327.6 kB / 3.749 GB, free: 22.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/10.38, allocations: 279 kB / 3.749 GB, free: 22.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/10.38, allocations: 1.032 MB / 3.75 GB, free: 22.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/10.38, allocations: 119.8 kB / 3.75 GB, free: 22.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001928/10.38, allocations: 65.12 kB / 3.75 GB, free: 22.43 MB / 0.4948 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.000495/10.38, allocations: 158.8 kB / 3.75 GB, free: 22.33 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003121/10.39, allocations: 112.2 kB / 3.75 GB, free: 22.27 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005216/10.39, allocations: 2.9 MB / 3.753 GB, free: 22.03 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.493e-05/10.39, allocations: 30.14 kB / 3.753 GB, free: 22.03 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/10.39, allocations: 8.703 kB / 3.753 GB, free: 22.02 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.724e-05/10.39, allocations: 10.45 kB / 3.753 GB, free: 22.02 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007782/10.4, allocations: 4.568 MB / 3.758 GB, free: 21.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.931e-06/10.4, allocations: 0 / 3.758 GB, free: 21.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006903/10.4, allocations: 130.4 kB / 3.758 GB, free: 21.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005122/10.4, allocations: 1.53 MB / 3.759 GB, free: 21.26 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001691/10.4, allocations: 13 kB / 3.759 GB, free: 21.26 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00299/10.41, allocations: 2.261 MB / 3.762 GB, free: 20.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.995e-06/10.41, allocations: 9.219 kB / 3.762 GB, free: 20.19 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005684/10.41, allocations: 3.316 MB / 3.765 GB, free: 19.79 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009217/10.41, allocations: 349.3 kB / 3.765 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002282/10.41, allocations: 2.781 kB / 3.765 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/10.42, allocations: 75.34 kB / 3.765 GB, free: 19.61 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/10.42, allocations: 64.94 kB / 3.765 GB, free: 19.61 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.443e-05/10.42, allocations: 29.7 kB / 3.765 GB, free: 19.61 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001081/10.42, allocations: 0.608 MB / 3.766 GB, free: 19.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.1e-07/10.42, allocations: 0 / 3.766 GB, free: 19.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007191/10.42, allocations: 1.906 MB / 3.768 GB, free: 19.41 MB / 0.4948 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.01018/10.43, allocations: 2.493 MB / 3.77 GB, free: 19.04 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004468/10.44, allocations: 2.052 MB / 3.772 GB, free: 19.01 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.53e-06/10.44, allocations: 5.219 kB / 3.772 GB, free: 19.01 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001369/10.44, allocations: 0.805 MB / 3.773 GB, free: 19 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002673/10.44, allocations: 480.1 kB / 3.773 GB, free: 18.96 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004412/10.45, allocations: 2.364 MB / 3.776 GB, free: 18.34 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001132/10.45, allocations: 1.337 MB / 3.777 GB, free: 17.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004567/10.45, allocations: 108.2 kB / 3.777 GB, free: 17.59 MB / 0.4948 GB Notification: Performance of SimCode: time 1.75e-06/10.45, allocations: 0 / 3.777 GB, free: 17.59 MB / 0.4948 GB Notification: Performance of Templates: time 0.3834/10.83, allocations: 55.06 MB / 3.831 GB, free: 84.2 MB / 0.4948 GB