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.SeriesPipes2.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.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.273/2.273, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.487e-05/3.51e-05, allocations: 4 kB / 309.7 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3284, allocations: 54.86 MB / 364.5 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.225/6.554, allocations: 2.655 GB / 3.011 GB, free: 115.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001965/6.554, allocations: 75.16 kB / 3.012 GB, free: 115.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.607/9.161, allocations: 0.5734 GB / 3.585 GB, free: 46.7 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.317e-06/9.161, allocations: 0 / 3.585 GB, free: 46.7 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001602/9.161, allocations: 55.11 kB / 3.585 GB, free: 46.69 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.01034/9.171, allocations: 2.846 MB / 3.588 GB, free: 45.22 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/9.172, allocations: 10.25 kB / 3.588 GB, free: 45.22 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005304/9.177, allocations: 0.5468 MB / 3.588 GB, free: 45.13 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004523/9.181, allocations: 1.441 MB / 3.59 GB, free: 44.76 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001658/9.182, allocations: 110.6 kB / 3.59 GB, free: 44.76 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004098/9.182, allocations: 126.2 kB / 3.59 GB, free: 44.76 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006122/9.188, allocations: 2.264 MB / 3.592 GB, free: 44.37 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.051e-05/9.188, allocations: 7.688 kB / 3.592 GB, free: 44.37 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002359/9.189, allocations: 50.56 kB / 3.592 GB, free: 44.37 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001629/9.189, allocations: 104.2 kB / 3.592 GB, free: 44.37 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00571/9.194, allocations: 1.964 MB / 3.594 GB, free: 44.35 MB / 0.4948 GB 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.01512/9.21, allocations: 9.648 MB / 3.604 GB, free: 38.43 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003797/9.213, allocations: 1.318 MB / 3.605 GB, free: 38.39 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001212/9.215, allocations: 0.6162 MB / 3.606 GB, free: 38.38 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03995/9.255, allocations: 18.85 MB / 3.624 GB, free: 26.63 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003327/9.258, allocations: 1.038 MB / 3.625 GB, free: 26.54 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=96): time 5.435e-06/9.258, allocations: 0 / 3.625 GB, free: 26.54 MB / 0.4948 GB Notification: Performance of matching and sorting (n=104): time 0.01451/9.273, allocations: 4.377 MB / 3.629 GB, free: 25.84 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.668e-05/9.273, allocations: 270.9 kB / 3.629 GB, free: 25.53 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00171/9.274, allocations: 0.9727 MB / 3.63 GB, free: 25.36 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002236/9.275, allocations: 46.64 kB / 3.63 GB, free: 25.33 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004749/9.275, allocations: 0.6332 MB / 3.631 GB, free: 24.99 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003713/9.276, allocations: 360.2 kB / 3.631 GB, free: 24.77 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/9.276, allocations: 31.62 kB / 3.631 GB, free: 24.76 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001078/9.276, allocations: 363.3 kB / 3.632 GB, free: 24.45 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/9.277, allocations: 0.6115 MB / 3.632 GB, free: 24.45 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001467/9.279, allocations: 0.9335 MB / 3.633 GB, free: 24.09 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001517/9.28, allocations: 0.7708 MB / 3.634 GB, free: 24.04 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.966e-06/9.28, allocations: 3.938 kB / 3.634 GB, free: 24.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003913/9.284, allocations: 1.772 MB / 3.636 GB, free: 23.91 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006628/9.285, allocations: 3.258 MB / 3.639 GB, free: 20.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.3e-05/9.285, allocations: 10.06 kB / 3.639 GB, free: 20.51 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006203/9.286, allocations: 139 kB / 3.639 GB, free: 20.49 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001966/9.287, allocations: 321.7 kB / 3.639 GB, free: 20.49 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008627/9.288, allocations: 1.26 MB / 3.641 GB, free: 19.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001903/9.29, allocations: 154.7 kB / 3.641 GB, free: 19.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002261/9.291, allocations: 65.84 kB / 3.641 GB, free: 19.43 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/9.291, allocations: 3.594 kB / 3.641 GB, free: 19.43 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003926/9.295, allocations: 1.684 MB / 3.643 GB, free: 19.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.437e-05/9.295, allocations: 7.156 kB / 3.643 GB, free: 19.36 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005665/9.295, allocations: 136.6 kB / 3.643 GB, free: 19.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/9.297, allocations: 325.1 kB / 3.643 GB, free: 19.33 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000797/9.298, allocations: 1.251 MB / 3.644 GB, free: 18.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/9.299, allocations: 158.5 kB / 3.644 GB, free: 18.28 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002196/9.299, allocations: 64.22 kB / 3.644 GB, free: 18.28 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 () * 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.0004746/9.3, allocations: 224.6 kB / 3.645 GB, free: 18.13 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003677/9.3, allocations: 137.2 kB / 3.645 GB, free: 18.07 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007465/9.308, allocations: 4.678 MB / 3.649 GB, free: 17.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.516e-05/9.308, allocations: 57.94 kB / 3.649 GB, free: 17.51 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.429e-06/9.308, allocations: 3.938 kB / 3.649 GB, free: 17.51 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005601/9.314, allocations: 3.904 MB / 3.653 GB, free: 16.27 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01023/9.324, allocations: 6.649 MB / 3.66 GB, free: 13.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.935e-06/9.324, allocations: 4 kB / 3.66 GB, free: 13.35 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/9.325, allocations: 239.8 kB / 3.66 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008281/9.326, allocations: 176.5 kB / 3.66 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001639/9.326, allocations: 33.62 kB / 3.66 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/9.328, allocations: 1.292 MB / 3.661 GB, free: 28.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.676e-06/9.328, allocations: 1.125 kB / 3.661 GB, free: 28.12 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006777/9.334, allocations: 4.157 MB / 3.665 GB, free: 26.26 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/9.336, allocations: 0.5342 MB / 3.666 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003425/9.336, allocations: 30.69 kB / 3.666 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/9.337, allocations: 125.1 kB / 3.666 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002191/9.338, allocations: 89.3 kB / 3.666 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001327/9.338, allocations: 45.73 kB / 3.666 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001545/9.339, allocations: 0.856 MB / 3.667 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.01e-07/9.339, allocations: 0 / 3.667 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007917/9.347, allocations: 2.188 MB / 3.669 GB, free: 25.03 MB / 0.5105 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) * 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.01058/9.358, allocations: 2.383 MB / 3.672 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005948/9.364, allocations: 3.05 MB / 3.675 GB, free: 23.18 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.513e-06/9.364, allocations: 3.906 kB / 3.675 GB, free: 23.18 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002454/9.366, allocations: 1.422 MB / 3.676 GB, free: 22.52 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003692/9.37, allocations: 0.5715 MB / 3.676 GB, free: 22.37 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5999/9.97, allocations: 126.3 MB / 3.8 GB, free: 51.95 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001342/9.971, allocations: 1.7 MB / 3.801 GB, free: 51.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006832/9.972, allocations: 136.1 kB / 3.802 GB, free: 51.19 MB / 0.5105 GB Notification: Performance of SimCode: time 1.882e-06/9.972, allocations: 1.875 kB / 3.802 GB, free: 51.19 MB / 0.5105 GB Notification: Performance of Templates: time 0.09551/10.07, allocations: 68.48 MB / 3.868 GB, free: 27.62 MB / 0.5105 GB