Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 1.802/1.802, allocations: 209.3 MB / 222.4 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.245e-05/3.266e-05, allocations: 8 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0874/0.08746, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.37/6.457, allocations: 2.547 GB / 2.866 GB, free: 98.29 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/6.458, allocations: 76.45 kB / 2.866 GB, free: 98.25 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 3.612/10.07, allocations: 0.7791 GB / 3.646 GB, free: 10.34 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.127e-06/10.07, allocations: 0 / 3.646 GB, free: 10.34 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002735/10.07, allocations: 63.77 kB / 3.646 GB, free: 10.28 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01537/10.09, allocations: 3.736 MB / 3.649 GB, free: 6.512 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/10.09, allocations: 8.031 kB / 3.649 GB, free: 6.504 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008194/10.09, allocations: 0.8165 MB / 3.65 GB, free: 5.688 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007735/10.1, allocations: 2.094 MB / 3.652 GB, free: 3.57 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003457/10.1, allocations: 181.6 kB / 3.652 GB, free: 3.402 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009158/10.1, allocations: 203.6 kB / 3.652 GB, free: 3.211 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3267/10.43, allocations: 3.55 MB / 3.656 GB, free: 28.26 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.743e-05/10.43, allocations: 5.906 kB / 3.656 GB, free: 28.26 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004058/10.43, allocations: 83.78 kB / 3.656 GB, free: 28.26 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002911/10.43, allocations: 166.1 kB / 3.656 GB, free: 28.26 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009641/10.44, allocations: 3.157 MB / 3.659 GB, free: 28.24 MB / 474.7 MB 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.02506/10.47, allocations: 15.03 MB / 3.674 GB, free: 19.42 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006658/10.47, allocations: 2.232 MB / 3.676 GB, free: 19.39 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002222/10.47, allocations: 1.028 MB / 3.677 GB, free: 19.38 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04059/10.52, allocations: 18.85 MB / 3.696 GB, free: 23.66 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005092/10.52, allocations: 1.631 MB / 3.697 GB, free: 23.56 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 5.812e-06/10.52, allocations: 0 / 3.697 GB, free: 23.56 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.0212/10.54, allocations: 6.946 MB / 3.704 GB, free: 22.73 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000209/10.54, allocations: 281.8 kB / 3.704 GB, free: 22.41 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002918/10.54, allocations: 1.396 MB / 3.706 GB, free: 22.24 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005178/10.55, allocations: 58.52 kB / 3.706 GB, free: 22.21 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009491/10.55, allocations: 0.9302 MB / 3.706 GB, free: 21.83 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008494/10.55, allocations: 0.5778 MB / 3.707 GB, free: 21.54 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002382/10.55, allocations: 37.91 kB / 3.707 GB, free: 21.54 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002555/10.55, allocations: 394.3 kB / 3.707 GB, free: 21.23 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002077/10.55, allocations: 1.038 MB / 3.708 GB, free: 21.22 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002404/10.55, allocations: 1.531 MB / 3.71 GB, free: 20.67 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002646/10.55, allocations: 1.272 MB / 3.711 GB, free: 20.61 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.536e-05/10.55, allocations: 3.938 kB / 3.711 GB, free: 20.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.007812/10.56, allocations: 3.555 MB / 3.715 GB, free: 20.45 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002604/10.57, allocations: 5.175 MB / 3.72 GB, free: 15.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.719e-05/10.57, allocations: 11.81 kB / 3.72 GB, free: 15.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01708/10.58, allocations: 2.759 MB / 3.722 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/10.58, allocations: 315.3 kB / 3.723 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006501/10.59, allocations: 3.299 MB / 3.726 GB, free: 14.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003097/10.59, allocations: 261.9 kB / 3.726 GB, free: 14.47 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003762/10.59, allocations: 105.3 kB / 3.726 GB, free: 14.47 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/10.59, allocations: 4.438 kB / 3.726 GB, free: 14.47 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007159/10.6, allocations: 3.258 MB / 3.73 GB, free: 14.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.447e-05/10.6, allocations: 15.31 kB / 3.73 GB, free: 14.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007279/10.61, allocations: 1.588 MB / 3.731 GB, free: 14.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00185/10.61, allocations: 357.5 kB / 3.731 GB, free: 14.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004212/10.61, allocations: 2.553 MB / 3.734 GB, free: 13.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00248/10.62, allocations: 264.7 kB / 3.734 GB, free: 13.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003059/10.62, allocations: 98.89 kB / 3.734 GB, free: 13.79 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 22 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.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,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 158 * 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.0007113/10.62, allocations: 263.2 kB / 3.735 GB, free: 13.65 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005452/10.62, allocations: 201.5 kB / 3.735 GB, free: 13.55 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01224/10.63, allocations: 7.687 MB / 3.742 GB, free: 12.77 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.435e-05/10.63, allocations: 94.84 kB / 3.742 GB, free: 12.77 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/10.63, allocations: 0 / 3.742 GB, free: 12.77 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009596/10.64, allocations: 6.606 MB / 3.749 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01864/10.66, allocations: 10.81 MB / 3.759 GB, free: 11.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.612e-05/10.66, allocations: 3.375 kB / 3.759 GB, free: 11.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002374/10.66, allocations: 404.4 kB / 3.76 GB, free: 11.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001646/10.66, allocations: 354.9 kB / 3.76 GB, free: 11.12 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004193/10.66, allocations: 59.42 kB / 3.76 GB, free: 11.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002286/10.67, allocations: 2.573 MB / 3.763 GB, free: 9.039 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.781e-06/10.67, allocations: 0 / 3.763 GB, free: 9.039 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01187/10.68, allocations: 6.901 MB / 3.769 GB, free: 8.406 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00222/10.68, allocations: 0.7543 MB / 3.77 GB, free: 8.07 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007463/10.68, allocations: 48.77 kB / 3.77 GB, free: 8.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002623/10.68, allocations: 198.9 kB / 3.77 GB, free: 8.059 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000543/10.68, allocations: 154.5 kB / 3.77 GB, free: 8.059 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002334/10.69, allocations: 65.78 kB / 3.771 GB, free: 8.059 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002396/10.69, allocations: 1.162 MB / 3.772 GB, free: 7.898 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.44e-07/10.69, allocations: 3.969 kB / 3.772 GB, free: 7.898 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01052/10.7, allocations: 2.747 MB / 3.774 GB, free: 7.777 MB / 490.7 MB 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: 53 ($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,$cse27.region3boundary,$cse28.region3boundary,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.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,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * 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.01208/10.71, allocations: 2.808 MB / 3.777 GB, free: 7.469 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01113/10.72, allocations: 4.996 MB / 3.782 GB, free: 23.17 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.465e-06/10.72, allocations: 0 / 3.782 GB, free: 23.17 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004348/10.73, allocations: 2.336 MB / 3.784 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005616/10.73, allocations: 0.8695 MB / 3.785 GB, free: 21.98 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.616/11.35, allocations: 126.9 MB / 3.909 GB, free: 55.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002235/11.35, allocations: 2.26 MB / 3.911 GB, free: 54.52 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009784/11.35, allocations: 182.1 kB / 3.911 GB, free: 54.52 MB / 0.4948 GB Notification: Performance of SimCode: time 2e-06/11.35, allocations: 3.094 kB / 3.911 GB, free: 54.52 MB / 0.4948 GB Notification: Performance of Templates: time 0.1391/11.49, allocations: 97.12 MB / 4.006 GB, free: 15.93 MB / 0.4948 GB