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.SeriesPipes13.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.SeriesPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.329/2.329, allocations: 234.9 MB / 250.5 MB, free: 9.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004297/0.0004299, allocations: 8 kB / 314.3 MB, free: 9.527 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.274, allocations: 54.88 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13): time 0.1135/0.3875, allocations: 77.64 MB / 446.8 MB, free: 12.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3649/0.7525, allocations: 32.71 MB / 479.5 MB, free: 6.863 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003114/0.7557, allocations: 92.72 kB / 479.6 MB, free: 6.863 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003655/0.7594, allocations: 1.081 MB / 480.7 MB, free: 6.859 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02064/0.7801, allocations: 6.243 MB / 487 MB, free: 6.793 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02266/0.8028, allocations: 7.055 MB / 494 MB, free: 6.695 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.007655/0.8104, allocations: 4.556 MB / 498.6 MB, free: 6.691 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002489/0.813, allocations: 1.238 MB / 499.8 MB, free: 6.57 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005364/0.8184, allocations: 2.07 MB / 0.4901 GB, free: 6.566 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03604/0.8545, allocations: 20.96 MB / 0.5106 GB, free: 13.93 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000756/0.8553, allocations: 104 kB / 0.5107 GB, free: 13.82 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02617/0.8815, allocations: 10.05 MB / 0.5205 GB, free: 6.02 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00167/0.8832, allocations: 0.7511 MB / 0.5212 GB, free: 5.531 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001245/0.8845, allocations: 0.5133 MB / 0.5217 GB, free: 5.234 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01551/0.9, allocations: 6.512 MB / 0.5281 GB, free: 15.68 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.62e-06/0.9001, allocations: 0 / 0.5281 GB, free: 15.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.742e-06/0.9001, allocations: 0 / 0.5281 GB, free: 15.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.117e-05/0.9002, allocations: 7.844 kB / 0.5281 GB, free: 15.68 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01685/0.917, allocations: 3.598 MB / 0.5316 GB, free: 12.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.752e-05/0.9171, allocations: 16.03 kB / 0.5316 GB, free: 12.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01363/0.9308, allocations: 0.8384 MB / 0.5324 GB, free: 11.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007152/0.938, allocations: 1.565 MB / 0.534 GB, free: 10.31 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004736/0.9385, allocations: 178.1 kB / 0.5341 GB, free: 10.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001032/0.9396, allocations: 197.5 kB / 0.5343 GB, free: 10.08 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01792/0.9575, allocations: 3.512 MB / 0.5378 GB, free: 7.344 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001225/0.9577, allocations: 6.812 kB / 0.5378 GB, free: 7.34 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007264/0.9584, allocations: 85.62 kB / 0.5379 GB, free: 7.32 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000561/0.959, allocations: 189.3 kB / 0.538 GB, free: 7.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01534/0.9744, allocations: 3.284 MB / 0.5412 GB, free: 4.801 MB / 426.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.02749/1.002, allocations: 14.98 MB / 0.5559 GB, free: 6.977 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01513/1.017, allocations: 2.303 MB / 0.5581 GB, free: 5.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07864/1.096, allocations: 19.04 MB / 0.5767 GB, free: 432 kB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005784/1.102, allocations: 1.621 MB / 0.5783 GB, free: 15.16 MB / 474.7 MB Notification: Performance of pre-optimization done (n=155): time 7.191e-06/1.102, allocations: 0 / 0.5783 GB, free: 15.16 MB / 474.7 MB Notification: Performance of matching and sorting (n=171): time 0.02687/1.129, allocations: 8.154 MB / 0.5863 GB, free: 9.035 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001682/1.129, allocations: 228.8 kB / 0.5865 GB, free: 8.766 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002976/1.132, allocations: 1.583 MB / 0.588 GB, free: 7.582 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003491/1.132, allocations: 59.48 kB / 0.5881 GB, free: 7.543 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009736/1.133, allocations: 0.9434 MB / 0.589 GB, free: 6.906 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009117/1.134, allocations: 0.5872 MB / 0.5896 GB, free: 6.406 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001988/1.134, allocations: 44.38 kB / 0.5896 GB, free: 6.395 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002907/1.135, allocations: 393.4 kB / 0.59 GB, free: 6.035 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002977/1.138, allocations: 1.143 MB / 0.5911 GB, free: 5.254 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003631/1.141, allocations: 1.675 MB / 0.5927 GB, free: 3.777 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003474/1.145, allocations: 1.383 MB / 0.5941 GB, free: 2.891 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.912e-05/1.145, allocations: 6.719 kB / 0.5941 GB, free: 2.887 MB / 474.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009839/1.155, allocations: 3.838 MB / 0.5978 GB, free: 308 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000566/1.155, allocations: 0.5546 MB / 0.5984 GB, free: 15.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.363e-05/1.155, allocations: 16 kB / 0.5984 GB, free: 15.58 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02045/1.176, allocations: 2.975 MB / 0.6013 GB, free: 12.95 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001641/1.177, allocations: 333 kB / 0.6016 GB, free: 12.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007848/1.185, allocations: 3.484 MB / 0.605 GB, free: 10.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002804/1.188, allocations: 255.1 kB / 0.6053 GB, free: 9.914 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003804/1.189, allocations: 106.6 kB / 0.6054 GB, free: 9.832 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/1.189, allocations: 7.844 kB / 0.6054 GB, free: 9.828 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009135/1.198, allocations: 3.562 MB / 0.6089 GB, free: 7.445 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.097e-05/1.198, allocations: 21.11 kB / 0.6089 GB, free: 7.426 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008683/1.207, allocations: 1.713 MB / 0.6105 GB, free: 5.973 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00187/1.208, allocations: 367.3 kB / 0.6109 GB, free: 5.656 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005765/1.214, allocations: 2.762 MB / 0.6136 GB, free: 3.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002204/1.217, allocations: 257.4 kB / 0.6138 GB, free: 3.352 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000315/1.217, allocations: 103.3 kB / 0.6139 GB, free: 3.27 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,pipe1.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.001765/1.219, allocations: 0.7243 MB / 0.6146 GB, free: 2.758 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000556/1.219, allocations: 197.6 kB / 0.6148 GB, free: 2.562 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01558/1.235, allocations: 7.746 MB / 0.6224 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001123/1.235, allocations: 91.86 kB / 0.6225 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/1.235, allocations: 0 / 0.6225 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01283/1.248, allocations: 6.637 MB / 0.629 GB, free: 3.852 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02181/1.27, allocations: 10.87 MB / 0.6396 GB, free: 8.883 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.535e-05/1.27, allocations: 0 / 0.6396 GB, free: 8.883 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002337/1.272, allocations: 394.9 kB / 0.64 GB, free: 8.512 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002021/1.274, allocations: 377.9 kB / 0.6403 GB, free: 8.133 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003821/1.275, allocations: 67.95 kB / 0.6404 GB, free: 8.066 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002491/1.277, allocations: 2.581 MB / 0.6429 GB, free: 5.391 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/1.277, allocations: 0 / 0.6429 GB, free: 5.391 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01575/1.293, allocations: 7.151 MB / 0.6499 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002018/1.295, allocations: 0.7449 MB / 0.6506 GB, free: 13.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000566/1.296, allocations: 47.98 kB / 0.6507 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002096/1.298, allocations: 195.6 kB / 0.6509 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004563/1.298, allocations: 149.8 kB / 0.651 GB, free: 12.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002355/1.298, allocations: 62.72 kB / 0.6511 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002528/1.301, allocations: 1.163 MB / 0.6522 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.041e-06/1.301, allocations: 0 / 0.6522 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00875/1.31, allocations: 2.589 MB / 0.6547 GB, free: 9.137 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008821/1.319, allocations: 2.11 MB / 0.6568 GB, free: 7.215 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02506/1.344, allocations: 5.399 MB / 0.6621 GB, free: 1.848 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/1.344, allocations: 3.094 kB / 0.6621 GB, free: 1.848 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.3246/1.668, allocations: 2.431 MB / 0.6644 GB, free: 224.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005634/1.674, allocations: 0.8599 MB / 0.6653 GB, free: 224.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01558/1.69, allocations: 9.248 MB / 0.6743 GB, free: 221.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002043/1.692, allocations: 2.257 MB / 0.6765 GB, free: 220.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009323/1.693, allocations: 184.6 kB / 0.6767 GB, free: 220.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.673e-06/1.693, allocations: 0 / 0.6767 GB, free: 220.4 MB / 0.5261 GB Notification: Performance of Templates: time 0.1673/1.86, allocations: 95.97 MB / 0.7704 GB, free: 133.5 MB / 0.5261 GB