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.SeriesPipes1.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.SeriesPipes1,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.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.163/2.163, allocations: 234.9 MB / 250.5 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004347/0.0004349, allocations: 12 kB / 314.3 MB, free: 9.648 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.305, allocations: 54.87 MB / 369.2 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1): time 0.1067/0.4118, allocations: 77.63 MB / 446.8 MB, free: 14.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05807/0.4699, allocations: 32.71 MB / 479.5 MB, free: 14.14 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002869/0.4728, allocations: 91.31 kB / 479.6 MB, free: 14.05 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003728/0.4766, allocations: 1.085 MB / 480.7 MB, free: 12.96 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02148/0.4981, allocations: 6.245 MB / 487 MB, free: 6.703 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02353/0.5216, allocations: 7.052 MB / 494 MB, free: 15.64 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.008286/0.5299, allocations: 4.5 MB / 498.5 MB, free: 11.13 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002335/0.5323, allocations: 1.244 MB / 499.7 MB, free: 9.863 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00488/0.5372, allocations: 2.084 MB / 0.4901 GB, free: 7.773 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3248/0.862, allocations: 20.95 MB / 0.5105 GB, free: 19.85 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005575/0.8626, allocations: 107.7 kB / 0.5106 GB, free: 19.85 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02197/0.8846, allocations: 10.04 MB / 0.5204 GB, free: 19.83 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00136/0.886, allocations: 0.7477 MB / 0.5212 GB, free: 19.83 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009341/0.887, allocations: 0.5174 MB / 0.5217 GB, free: 19.8 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01255/0.8996, allocations: 6.518 MB / 0.528 GB, free: 19.39 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.43e-06/0.8996, allocations: 6.75 kB / 0.528 GB, free: 19.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.541e-06/0.8996, allocations: 0 / 0.528 GB, free: 19.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.895e-05/0.8997, allocations: 0 / 0.528 GB, free: 19.38 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.01052/0.9102, allocations: 3.598 MB / 0.5316 GB, free: 17.68 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.9103, allocations: 9.281 kB / 0.5316 GB, free: 17.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007126/0.9174, allocations: 0.8431 MB / 0.5324 GB, free: 17.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003733/0.9212, allocations: 1.568 MB / 0.5339 GB, free: 16.81 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002175/0.9214, allocations: 182.6 kB / 0.5341 GB, free: 16.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004992/0.922, allocations: 198.1 kB / 0.5343 GB, free: 16.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009672/0.9316, allocations: 3.499 MB / 0.5377 GB, free: 14.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.866e-05/0.9318, allocations: 14.47 kB / 0.5377 GB, free: 14.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002866/0.9321, allocations: 87.22 kB / 0.5378 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002586/0.9323, allocations: 194.5 kB / 0.538 GB, free: 14.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009985/0.9423, allocations: 3.272 MB / 0.5412 GB, free: 12.2 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.02127/0.9636, allocations: 15 MB / 0.5558 GB, free: 14.37 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007446/0.9711, allocations: 2.3 MB / 0.5581 GB, free: 12.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04694/1.018, allocations: 19.03 MB / 0.5767 GB, free: 7.824 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005732/1.024, allocations: 1.625 MB / 0.5782 GB, free: 6.562 MB / 458.7 MB Notification: Performance of pre-optimization done (n=155): time 6.252e-06/1.024, allocations: 0 / 0.5782 GB, free: 6.562 MB / 458.7 MB Notification: Performance of matching and sorting (n=171): time 0.03153/1.055, allocations: 8.84 MB / 0.5869 GB, free: 15.77 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001759/1.056, allocations: 233.9 kB / 0.5871 GB, free: 15.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002959/1.059, allocations: 1.581 MB / 0.5886 GB, free: 14.31 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003564/1.059, allocations: 56.95 kB / 0.5887 GB, free: 14.27 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009535/1.06, allocations: 0.9463 MB / 0.5896 GB, free: 13.63 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008547/1.061, allocations: 0.5807 MB / 0.5902 GB, free: 13.14 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001841/1.061, allocations: 48.08 kB / 0.5902 GB, free: 13.12 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002637/1.061, allocations: 396.4 kB / 0.5906 GB, free: 12.77 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002854/1.064, allocations: 1.144 MB / 0.5917 GB, free: 11.98 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003384/1.068, allocations: 1.676 MB / 0.5934 GB, free: 10.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00334/1.071, allocations: 1.386 MB / 0.5947 GB, free: 9.613 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.501e-05/1.071, allocations: 4 kB / 0.5947 GB, free: 9.609 MB / 474.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.008296/1.079, allocations: 3.229 MB / 0.5979 GB, free: 7.387 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005398/1.08, allocations: 0.5536 MB / 0.5984 GB, free: 6.688 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.225e-05/1.08, allocations: 16 kB / 0.5984 GB, free: 6.672 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001282/1.081, allocations: 281.1 kB / 0.5987 GB, free: 6.445 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002965/1.084, allocations: 0.5306 MB / 0.5992 GB, free: 5.965 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00235/1.087, allocations: 2.504 MB / 0.6017 GB, free: 3.535 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002846/1.09, allocations: 262.6 kB / 0.6019 GB, free: 3.312 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004501/1.09, allocations: 104.7 kB / 0.602 GB, free: 3.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/1.09, allocations: 4 kB / 0.602 GB, free: 3.227 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007858/1.098, allocations: 3.088 MB / 0.605 GB, free: 1.145 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.898e-05/1.098, allocations: 16 kB / 0.6051 GB, free: 1.129 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001245/1.099, allocations: 282.9 kB / 0.6053 GB, free: 0.9023 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00291/1.102, allocations: 0.5255 MB / 0.6058 GB, free: 440 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00235/1.105, allocations: 2.501 MB / 0.6083 GB, free: 14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002292/1.107, allocations: 261.5 kB / 0.6085 GB, free: 13.78 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002838/1.107, allocations: 96.98 kB / 0.6086 GB, free: 13.71 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 (258): * Single equations (assignments): 251 * 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: 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 prepare postOptimizeDAE: time 0.00169/1.109, allocations: 0.7408 MB / 0.6093 GB, free: 13.18 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005165/1.109, allocations: 197.6 kB / 0.6095 GB, free: 12.99 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01399/1.123, allocations: 7.73 MB / 0.6171 GB, free: 7.719 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.878e-05/1.124, allocations: 86.92 kB / 0.6172 GB, free: 7.656 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/1.124, allocations: 4 kB / 0.6172 GB, free: 7.652 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01131/1.135, allocations: 6.637 MB / 0.6236 GB, free: 3.102 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01892/1.154, allocations: 10.88 MB / 0.6343 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/1.154, allocations: 3.75 kB / 0.6343 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002238/1.156, allocations: 404.2 kB / 0.6347 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001965/1.158, allocations: 374.7 kB / 0.635 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000221/1.158, allocations: 67.33 kB / 0.6351 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002366/1.161, allocations: 2.575 MB / 0.6376 GB, free: 8.812 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.311e-06/1.161, allocations: 3.953 kB / 0.6376 GB, free: 8.809 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01327/1.174, allocations: 7.158 MB / 0.6446 GB, free: 3.98 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00174/1.176, allocations: 0.7362 MB / 0.6453 GB, free: 3.348 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004207/1.176, allocations: 50.36 kB / 0.6454 GB, free: 3.328 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001829/1.178, allocations: 195 kB / 0.6455 GB, free: 3.164 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000372/1.179, allocations: 151.2 kB / 0.6457 GB, free: 3.031 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002044/1.179, allocations: 66.09 kB / 0.6458 GB, free: 2.98 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002195/1.181, allocations: 1.164 MB / 0.6469 GB, free: 2.102 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.161e-06/1.181, allocations: 0 / 0.6469 GB, free: 2.102 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008415/1.189, allocations: 2.583 MB / 0.6494 GB, free: 15.68 MB / 0.5105 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.00873/1.198, allocations: 2.102 MB / 0.6515 GB, free: 13.83 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01207/1.21, allocations: 5.305 MB / 0.6566 GB, free: 10.15 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/1.21, allocations: 4 kB / 0.6566 GB, free: 10.14 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004669/1.215, allocations: 2.439 MB / 0.659 GB, free: 8.551 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005255/1.22, allocations: 0.8615 MB / 0.6599 GB, free: 7.695 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01715/1.237, allocations: 9.227 MB / 0.6689 GB, free: 14.56 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002736/1.24, allocations: 2.257 MB / 0.6711 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/1.241, allocations: 207.4 kB / 0.6713 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of SimCode: time 1.614e-06/1.241, allocations: 0 / 0.6713 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of Templates: time 0.4104/1.652, allocations: 115.8 MB / 0.7843 GB, free: 162.4 MB / 0.5417 GB