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/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.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.183/2.183, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.901e-05/1.913e-05, allocations: 4 kB / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.278, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.405/6.683, allocations: 2.663 GB / 3.013 GB, free: 108.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/6.683, allocations: 74.11 kB / 3.013 GB, free: 108.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.94/8.623, allocations: 495.8 MB / 3.497 GB, free: 33.18 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.952e-06/8.623, allocations: 4 kB / 3.497 GB, free: 33.17 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001204/8.623, allocations: 43.94 kB / 3.497 GB, free: 33.13 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.01076/8.634, allocations: 2.979 MB / 3.5 GB, free: 30.46 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/8.634, allocations: 12.03 kB / 3.5 GB, free: 30.45 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006494/8.64, allocations: 0.7039 MB / 3.501 GB, free: 29.89 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004873/8.645, allocations: 1.574 MB / 3.502 GB, free: 28.56 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000202/8.645, allocations: 98.11 kB / 3.502 GB, free: 28.48 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006657/8.646, allocations: 107.9 kB / 3.502 GB, free: 28.37 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006232/8.652, allocations: 2.83 MB / 3.505 GB, free: 25.88 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006321/8.659, allocations: 2.873 MB / 3.508 GB, free: 23.34 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.561e-05/8.659, allocations: 6.875 kB / 3.508 GB, free: 23.33 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000319/8.659, allocations: 12 kB / 3.508 GB, free: 23.32 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001876/8.659, allocations: 170.2 kB / 3.508 GB, free: 23.18 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.6083/9.268, allocations: 140.5 MB / 3.645 GB, free: 28.27 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003367/9.271, allocations: 1.567 MB / 3.647 GB, free: 28.23 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001949/9.273, allocations: 0.9919 MB / 3.648 GB, free: 28.21 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0393/9.312, allocations: 16.72 MB / 3.664 GB, free: 17.43 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00234/9.315, allocations: 1.146 MB / 3.665 GB, free: 17.33 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=139): time 5.645e-06/9.315, allocations: 0 / 3.665 GB, free: 17.33 MB / 0.5261 GB Notification: Performance of matching and sorting (n=159): time 0.02672/9.342, allocations: 7.389 MB / 3.672 GB, free: 16.35 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001553/9.342, allocations: 227.3 kB / 3.673 GB, free: 16.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001632/9.344, allocations: 0.9252 MB / 3.674 GB, free: 15.94 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003849/9.344, allocations: 36.77 kB / 3.674 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007471/9.345, allocations: 0.8879 MB / 3.675 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006853/9.345, allocations: 0.5321 MB / 3.675 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002023/9.346, allocations: 0 / 3.675 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002575/9.346, allocations: 397.7 kB / 3.675 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00206/9.348, allocations: 1.124 MB / 3.677 GB, free: 14.87 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002431/9.35, allocations: 1.669 MB / 3.678 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008594/9.359, allocations: 2.001 MB / 3.68 GB, free: 14.19 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-05/9.359, allocations: 3 kB / 3.68 GB, free: 14.19 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01947/9.379, allocations: 4.384 MB / 3.684 GB, free: 14.03 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.003916/9.383, allocations: 6.276 MB / 3.691 GB, free: 23.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.732e-05/9.383, allocations: 17.03 kB / 3.691 GB, free: 23.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01348/9.396, allocations: 2.745 MB / 3.693 GB, free: 23.35 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001614/9.398, allocations: 331.8 kB / 3.694 GB, free: 23.35 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009238/9.407, allocations: 4.245 MB / 3.698 GB, free: 22.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003143/9.41, allocations: 254 kB / 3.698 GB, free: 22.72 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004304/9.411, allocations: 110.1 kB / 3.698 GB, free: 22.72 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/9.411, allocations: 3.906 kB / 3.698 GB, free: 22.72 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0131/9.424, allocations: 3.871 MB / 3.702 GB, free: 22.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.176e-05/9.424, allocations: 15.5 kB / 3.702 GB, free: 22.64 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01027/9.434, allocations: 2.042 MB / 3.704 GB, free: 22.57 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001904/9.436, allocations: 371.2 kB / 3.704 GB, free: 22.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005723/9.442, allocations: 3.227 MB / 3.707 GB, free: 22.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002532/9.445, allocations: 234.1 kB / 3.708 GB, free: 21.98 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002815/9.445, allocations: 105.2 kB / 3.708 GB, free: 21.98 MB / 0.5417 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 ($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,source.medium.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.0006966/9.446, allocations: 167.8 kB / 3.708 GB, free: 21.87 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004379/9.446, allocations: 134.5 kB / 3.708 GB, free: 21.8 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01091/9.457, allocations: 5.649 MB / 3.713 GB, free: 21.38 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.851e-05/9.457, allocations: 74.92 kB / 3.714 GB, free: 21.37 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/9.457, allocations: 0 / 3.714 GB, free: 21.37 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009422/9.466, allocations: 5.126 MB / 3.719 GB, free: 18.93 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01599/9.483, allocations: 8.383 MB / 3.727 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.57e-05/9.483, allocations: 1.125 kB / 3.727 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002296/9.485, allocations: 400.5 kB / 3.727 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001423/9.486, allocations: 423.2 kB / 3.727 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003876/9.487, allocations: 35.8 kB / 3.728 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002993/9.49, allocations: 3.358 MB / 3.731 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.808e-06/9.49, allocations: 3.953 kB / 3.731 GB, free: 11.06 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01188/9.502, allocations: 6.247 MB / 3.737 GB, free: 7.621 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/9.503, allocations: 0.5608 MB / 3.737 GB, free: 7.207 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004512/9.504, allocations: 25.08 kB / 3.737 GB, free: 7.199 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001987/9.506, allocations: 167.5 kB / 3.738 GB, free: 7.082 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004263/9.506, allocations: 160.5 kB / 3.738 GB, free: 7.004 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001922/9.507, allocations: 66.36 kB / 3.738 GB, free: 6.961 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001164/9.508, allocations: 0.6586 MB / 3.739 GB, free: 6.555 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.96e-07/9.508, allocations: 6.062 kB / 3.739 GB, free: 6.551 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009145/9.517, allocations: 2.176 MB / 3.741 GB, free: 4.668 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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: 34 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$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,$cse21.phase,$cse21.region,$cse27.phase,$cse27.region,$cse31.phase,$cse31.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.01042/9.527, allocations: 2.078 MB / 3.743 GB, free: 3.234 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01218/9.54, allocations: 4.835 MB / 3.747 GB, free: 0 / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.577e-05/9.54, allocations: 1.531 kB / 3.747 GB, free: 0 / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.2979/9.838, allocations: 2.08 MB / 3.749 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003587/9.841, allocations: 0.5596 MB / 3.75 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/9.851, allocations: 5.142 MB / 3.755 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001722/9.853, allocations: 1.905 MB / 3.757 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009649/9.854, allocations: 158.2 kB / 3.757 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of SimCode: time 1.74e-06/9.854, allocations: 2.406 kB / 3.757 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of Templates: time 0.1098/9.964, allocations: 80.7 MB / 3.836 GB, free: 101.6 MB / 0.5417 GB