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.261/2.261, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007469/0.0007473, allocations: 15.98 kB / 314.3 MB, free: 9.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2797, allocations: 54.86 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization): time 0.0596/0.3393, allocations: 40.28 MB / 409.5 MB, free: 2.336 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03989/0.3793, allocations: 22.48 MB / 431.9 MB, free: 11.81 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001339/0.3807, allocations: 35.69 kB / 432 MB, free: 11.77 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001665/0.3823, allocations: 0.5017 MB / 432.5 MB, free: 11.27 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01607/0.3984, allocations: 4.577 MB / 437.1 MB, free: 6.68 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01444/0.4129, allocations: 4.123 MB / 441.2 MB, free: 2.547 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005139/0.4181, allocations: 3.044 MB / 444.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001559/0.4197, allocations: 0.846 MB / 445.1 MB, free: 14.63 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3594/0.7791, allocations: 50.29 MB / 495.4 MB, free: 35.4 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03058/0.8097, allocations: 19.97 MB / 0.5032 GB, free: 18.89 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003712/0.8101, allocations: 84 kB / 0.5033 GB, free: 18.81 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01664/0.8268, allocations: 8.227 MB / 0.5114 GB, free: 13.86 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008788/0.8277, allocations: 0.6389 MB / 0.512 GB, free: 13.43 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006767/0.8284, allocations: 452.5 kB / 0.5124 GB, free: 13.16 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008902/0.8373, allocations: 5.266 MB / 0.5176 GB, free: 8.656 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.14e-06/0.8373, allocations: 0 / 0.5176 GB, free: 8.656 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.659e-06/0.8373, allocations: 0 / 0.5176 GB, free: 8.656 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.438e-05/0.8374, allocations: 4 kB / 0.5176 GB, free: 8.652 MB / 394.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.008997/0.8464, allocations: 3.079 MB / 0.5206 GB, free: 5.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.8465, allocations: 12.03 kB / 0.5206 GB, free: 5.738 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005906/0.8524, allocations: 0.6828 MB / 0.5212 GB, free: 5.117 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002471/0.8549, allocations: 1.182 MB / 0.5224 GB, free: 4.227 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001798/0.8551, allocations: 165.4 kB / 0.5226 GB, free: 4.133 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003582/0.8554, allocations: 180.5 kB / 0.5227 GB, free: 4.016 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008986/0.8644, allocations: 3.565 MB / 0.5262 GB, free: 1.328 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.641e-05/0.8645, allocations: 7.188 kB / 0.5262 GB, free: 1.324 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002658/0.8648, allocations: 74.41 kB / 0.5263 GB, free: 1.305 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002417/0.8651, allocations: 226.4 kB / 0.5265 GB, free: 1.113 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01023/0.8753, allocations: 3.528 MB / 0.5299 GB, free: 14.61 MB / 410.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.02387/0.8992, allocations: 14.13 MB / 0.5437 GB, free: 1.855 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007236/0.9065, allocations: 2.293 MB / 0.546 GB, free: 148 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1546/1.061, allocations: 64.32 MB / 0.6088 GB, free: 9.512 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005562/1.067, allocations: 1.727 MB / 0.6105 GB, free: 8.168 MB / 490.7 MB Notification: Performance of pre-optimization done (n=154): time 5.448e-06/1.067, allocations: 0 / 0.6105 GB, free: 8.168 MB / 490.7 MB Notification: Performance of matching and sorting (n=174): time 0.02861/1.095, allocations: 9.491 MB / 0.6198 GB, free: 0.8438 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002044/1.096, allocations: 289.1 kB / 0.62 GB, free: 0.5039 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002311/1.098, allocations: 1.314 MB / 0.6213 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002249/1.098, allocations: 56.27 kB / 0.6214 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007639/1.099, allocations: 0.8217 MB / 0.6222 GB, free: 14.87 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007418/1.1, allocations: 0.6044 MB / 0.6228 GB, free: 14.35 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001853/1.1, allocations: 43.75 kB / 0.6228 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002596/1.1, allocations: 395.8 kB / 0.6232 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003285/1.104, allocations: 1.283 MB / 0.6244 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003895/1.107, allocations: 1.875 MB / 0.6263 GB, free: 11.44 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003585/1.111, allocations: 1.524 MB / 0.6278 GB, free: 10.47 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.542e-05/1.111, allocations: 4 kB / 0.6278 GB, free: 10.47 MB / 0.4948 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.01115/1.122, allocations: 4.289 MB / 0.6319 GB, free: 7.574 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005401/1.123, allocations: 0.5983 MB / 0.6325 GB, free: 6.812 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.284e-05/1.123, allocations: 20 kB / 0.6325 GB, free: 6.793 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.021/1.144, allocations: 3.75 MB / 0.6362 GB, free: 3.449 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001674/1.146, allocations: 340.3 kB / 0.6365 GB, free: 3.152 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009358/1.155, allocations: 4.053 MB / 0.6405 GB, free: 15.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002806/1.158, allocations: 271.4 kB / 0.6408 GB, free: 15.35 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003189/1.158, allocations: 109.4 kB / 0.6409 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/1.158, allocations: 13.05 kB / 0.6409 GB, free: 15.23 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01102/1.169, allocations: 3.978 MB / 0.6448 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.353e-05/1.169, allocations: 16 kB / 0.6448 GB, free: 11.35 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01209/1.181, allocations: 2.395 MB / 0.6471 GB, free: 8.949 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001845/1.183, allocations: 376.2 kB / 0.6475 GB, free: 8.605 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00725/1.191, allocations: 3.346 MB / 0.6507 GB, free: 5.246 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002314/1.193, allocations: 273.6 kB / 0.651 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002807/1.193, allocations: 108 kB / 0.6511 GB, free: 4.879 MB / 0.5105 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,pipe.state_a.phase,valve.state_b.phase,valve.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 170 * 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.001635/1.195, allocations: 0.6895 MB / 0.6518 GB, free: 4.199 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004387/1.195, allocations: 169.1 kB / 0.6519 GB, free: 4.035 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2654/1.461, allocations: 6.838 MB / 0.6586 GB, free: 213.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.02e-05/1.461, allocations: 75.92 kB / 0.6587 GB, free: 213.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/1.461, allocations: 3.562 kB / 0.6587 GB, free: 213.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009464/1.47, allocations: 5.492 MB / 0.664 GB, free: 210.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0156/1.486, allocations: 9.532 MB / 0.6734 GB, free: 207.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.721e-05/1.486, allocations: 3.812 kB / 0.6734 GB, free: 207.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002201/1.488, allocations: 439.4 kB / 0.6738 GB, free: 207.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002344/1.491, allocations: 478.9 kB / 0.6742 GB, free: 207.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002389/1.491, allocations: 60.3 kB / 0.6743 GB, free: 207 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001903/1.493, allocations: 3.213 MB / 0.6774 GB, free: 204.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/1.493, allocations: 6.391 kB / 0.6774 GB, free: 204.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01184/1.505, allocations: 7.036 MB / 0.6843 GB, free: 198.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/1.506, allocations: 0.764 MB / 0.6851 GB, free: 197.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003993/1.507, allocations: 47.98 kB / 0.6851 GB, free: 197.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001781/1.508, allocations: 212.7 kB / 0.6853 GB, free: 197.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003761/1.509, allocations: 185.7 kB / 0.6855 GB, free: 197.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001813/1.509, allocations: 63.97 kB / 0.6855 GB, free: 197.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00192/1.511, allocations: 1.233 MB / 0.6867 GB, free: 196.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.205e-06/1.511, allocations: 96 / 0.6867 GB, free: 196.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006138/1.517, allocations: 2.221 MB / 0.6889 GB, free: 194.1 MB / 0.5105 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,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse34.phase,$cse34.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 () * Number of clocked 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.006055/1.523, allocations: 1.543 MB / 0.6904 GB, free: 192.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01189/1.535, allocations: 5.511 MB / 0.6958 GB, free: 187.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.928e-06/1.535, allocations: 0 / 0.6958 GB, free: 187.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004149/1.539, allocations: 2.362 MB / 0.6981 GB, free: 185 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004173/1.544, allocations: 0.785 MB / 0.6989 GB, free: 184.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.016/1.56, allocations: 8.244 MB / 0.7069 GB, free: 176.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003269/1.563, allocations: 2.039 MB / 0.7089 GB, free: 174.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001693/1.565, allocations: 171.4 kB / 0.7091 GB, free: 173.9 MB / 0.5105 GB Notification: Performance of SimCode: time 2.407e-06/1.565, allocations: 0 / 0.7091 GB, free: 173.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.1424/1.707, allocations: 86.64 MB / 0.7937 GB, free: 87.11 MB / 0.5105 GB