Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.457/2.457, allocations: 234.9 MB / 251.1 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004348/0.0004348, allocations: 12 kB / 314.9 MB, free: 9.527 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3446, allocations: 54.85 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.927/8.272, allocations: 2.656 GB / 3.017 GB, free: 36.01 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/8.272, allocations: 90.44 kB / 3.017 GB, free: 35.96 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.169/11.44, allocations: 0.5749 GB / 3.592 GB, free: 31.16 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.076e-06/11.44, allocations: 0 / 3.592 GB, free: 31.16 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002198/11.44, allocations: 42 kB / 3.592 GB, free: 31.13 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01423/11.46, allocations: 3.042 MB / 3.595 GB, free: 28.05 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/11.46, allocations: 15.91 kB / 3.595 GB, free: 28.04 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005741/11.46, allocations: 0.5365 MB / 3.595 GB, free: 27.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005948/11.47, allocations: 1.449 MB / 3.597 GB, free: 26.04 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002099/11.47, allocations: 106.7 kB / 3.597 GB, free: 25.93 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005891/11.47, allocations: 129.4 kB / 3.597 GB, free: 25.82 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008078/11.48, allocations: 2.298 MB / 3.599 GB, free: 23.39 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.519e-05/11.48, allocations: 7.844 kB / 3.599 GB, free: 23.39 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002946/11.48, allocations: 58.09 kB / 3.599 GB, free: 23.34 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002312/11.48, allocations: 98.25 kB / 3.599 GB, free: 23.24 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008237/11.49, allocations: 2.058 MB / 3.601 GB, free: 21.17 MB / 0.4948 GB 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.02089/11.51, allocations: 9.654 MB / 3.611 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006014/11.51, allocations: 1.388 MB / 3.612 GB, free: 9.375 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4562/11.97, allocations: 18.78 MB / 3.63 GB, free: 39.05 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004393/11.97, allocations: 1.038 MB / 3.631 GB, free: 38.96 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=96): time 5.2e-06/11.97, allocations: 2.156 kB / 3.631 GB, free: 38.96 MB / 0.4948 GB Notification: Performance of matching and sorting (n=104): time 0.02287/12, allocations: 5.171 MB / 3.636 GB, free: 38.35 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/12, allocations: 276.1 kB / 3.637 GB, free: 38.04 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00234/12, allocations: 1.105 MB / 3.638 GB, free: 37.88 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003793/12, allocations: 46.89 kB / 3.638 GB, free: 37.85 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006657/12, allocations: 0.6393 MB / 3.638 GB, free: 37.56 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006005/12, allocations: 358 kB / 3.639 GB, free: 37.38 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/12, allocations: 29.41 kB / 3.639 GB, free: 37.38 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001296/12, allocations: 364 kB / 3.639 GB, free: 37.07 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002271/12, allocations: 0.6789 MB / 3.64 GB, free: 37.07 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002645/12.01, allocations: 1.019 MB / 3.641 GB, free: 36.71 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002673/12.01, allocations: 0.8308 MB / 3.642 GB, free: 36.67 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.56e-05/12.01, allocations: 2.375 kB / 3.642 GB, free: 36.67 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.006624/12.02, allocations: 1.939 MB / 3.644 GB, free: 36.54 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002537/12.02, allocations: 365.4 kB / 3.644 GB, free: 36.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.763e-05/12.02, allocations: 8.938 kB / 3.644 GB, free: 36.14 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008031/12.02, allocations: 141.8 kB / 3.644 GB, free: 36.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002613/12.02, allocations: 326.5 kB / 3.644 GB, free: 36.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009934/12.02, allocations: 1.25 MB / 3.646 GB, free: 35.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002518/12.02, allocations: 163.5 kB / 3.646 GB, free: 35.08 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002938/12.02, allocations: 62.41 kB / 3.646 GB, free: 35.08 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/12.02, allocations: 7.625 kB / 3.646 GB, free: 35.08 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005924/12.03, allocations: 1.83 MB / 3.648 GB, free: 35.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-05/12.03, allocations: 13.14 kB / 3.648 GB, free: 35.01 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007597/12.03, allocations: 148.6 kB / 3.648 GB, free: 34.99 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002513/12.03, allocations: 321.2 kB / 3.648 GB, free: 34.99 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009631/12.03, allocations: 1.254 MB / 3.649 GB, free: 33.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00196/12.04, allocations: 154.9 kB / 3.649 GB, free: 33.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000235/12.04, allocations: 69.89 kB / 3.649 GB, free: 33.95 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.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 (152): * Single equations (assignments): 147 * 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: 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.001525/12.04, allocations: 0.5412 MB / 3.65 GB, free: 33.73 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000478/12.04, allocations: 135.3 kB / 3.65 GB, free: 33.66 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0102/12.05, allocations: 4.756 MB / 3.655 GB, free: 33.23 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.759e-05/12.05, allocations: 53.19 kB / 3.655 GB, free: 33.23 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/12.05, allocations: 0 / 3.655 GB, free: 33.23 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00809/12.06, allocations: 3.975 MB / 3.659 GB, free: 32.79 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01418/12.07, allocations: 6.741 MB / 3.665 GB, free: 32.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/12.07, allocations: 0 / 3.665 GB, free: 32.26 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001996/12.07, allocations: 241.6 kB / 3.666 GB, free: 32.26 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001234/12.07, allocations: 192 kB / 3.666 GB, free: 32.24 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002752/12.07, allocations: 42.22 kB / 3.666 GB, free: 32.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009105/12.08, allocations: 1.288 MB / 3.667 GB, free: 31.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/12.08, allocations: 0 / 3.667 GB, free: 31.2 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009824/12.08, allocations: 4.366 MB / 3.671 GB, free: 30.77 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001571/12.09, allocations: 0.532 MB / 3.672 GB, free: 30.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005621/12.09, allocations: 33.89 kB / 3.672 GB, free: 30.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001932/12.09, allocations: 123.2 kB / 3.672 GB, free: 30.56 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003328/12.09, allocations: 85.42 kB / 3.672 GB, free: 30.56 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001525/12.09, allocations: 41.81 kB / 3.672 GB, free: 30.56 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001874/12.09, allocations: 0.875 MB / 3.673 GB, free: 30.45 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.31e-07/12.09, allocations: 4.438 kB / 3.673 GB, free: 30.45 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01032/12.1, allocations: 2.184 MB / 3.675 GB, free: 30.41 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * 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 (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0145/12.12, allocations: 2.374 MB / 3.677 GB, free: 30.17 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009156/12.13, allocations: 3.241 MB / 3.681 GB, free: 29.94 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/12.13, allocations: 0 / 3.681 GB, free: 29.94 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003488/12.13, allocations: 1.485 MB / 3.682 GB, free: 29.87 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005279/12.13, allocations: 0.5727 MB / 3.683 GB, free: 29.87 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.384/12.52, allocations: 127.6 MB / 3.807 GB, free: 2.332 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002268/12.52, allocations: 1.695 MB / 3.809 GB, free: 0.9453 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009795/12.52, allocations: 142.2 kB / 3.809 GB, free: 0.8164 MB / 0.5105 GB Notification: Performance of SimCode: time 1.864e-06/12.52, allocations: 0 / 3.809 GB, free: 0.8164 MB / 0.5105 GB Notification: Performance of Templates: time 0.532/13.05, allocations: 68.83 MB / 3.876 GB, free: 54.45 MB / 0.5105 GB