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.SeriesPipes13.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.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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 1.991/1.991, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.016e-05/4.045e-05, allocations: 0 / 277.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1497, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.346/6.496, allocations: 2.548 GB / 2.866 GB, free: 100.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001982/6.496, allocations: 83.12 kB / 2.866 GB, free: 100.1 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.95/10.45, allocations: 0.8402 GB / 3.707 GB, free: 29.5 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.862e-06/10.45, allocations: 0 / 3.707 GB, free: 29.5 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002446/10.45, allocations: 69.16 kB / 3.707 GB, free: 29.49 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.01315/10.46, allocations: 3.731 MB / 3.71 GB, free: 27.75 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/10.46, allocations: 8.219 kB / 3.71 GB, free: 27.75 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007703/10.47, allocations: 0.8169 MB / 3.711 GB, free: 27.61 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006753/10.47, allocations: 2.092 MB / 3.713 GB, free: 27.15 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002715/10.47, allocations: 183.2 kB / 3.713 GB, free: 27.15 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007004/10.48, allocations: 193.2 kB / 3.714 GB, free: 27.15 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009724/10.48, allocations: 3.553 MB / 3.717 GB, free: 26.62 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.658e-05/10.48, allocations: 17.5 kB / 3.717 GB, free: 26.62 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000365/10.49, allocations: 87.16 kB / 3.717 GB, free: 26.62 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002351/10.49, allocations: 163.3 kB / 3.717 GB, free: 26.61 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009398/10.5, allocations: 3.161 MB / 3.72 GB, free: 26.6 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.02451/10.52, allocations: 15.03 MB / 3.735 GB, free: 17.58 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01119/10.53, allocations: 2.219 MB / 3.737 GB, free: 17.54 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005176/10.54, allocations: 1.041 MB / 3.738 GB, free: 17.52 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04342/10.58, allocations: 18.85 MB / 3.757 GB, free: 21.78 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005244/10.58, allocations: 1.637 MB / 3.758 GB, free: 21.68 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 6.571e-06/10.58, allocations: 2.281 kB / 3.758 GB, free: 21.68 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.02243/10.61, allocations: 6.947 MB / 3.765 GB, free: 20.76 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002016/10.61, allocations: 284.2 kB / 3.765 GB, free: 20.45 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002771/10.61, allocations: 1.398 MB / 3.767 GB, free: 20.25 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004374/10.61, allocations: 54.3 kB / 3.767 GB, free: 20.22 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008131/10.61, allocations: 0.9234 MB / 3.768 GB, free: 19.75 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007239/10.61, allocations: 0.5792 MB / 3.768 GB, free: 19.39 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002125/10.61, allocations: 40.97 kB / 3.768 GB, free: 19.39 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002614/10.61, allocations: 393.3 kB / 3.769 GB, free: 19.08 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002131/10.62, allocations: 1.037 MB / 3.77 GB, free: 19.07 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002592/10.62, allocations: 1.527 MB / 3.771 GB, free: 18.52 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005541/10.62, allocations: 1.275 MB / 3.772 GB, free: 18.46 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.729e-05/10.62, allocations: 3.281 kB / 3.772 GB, free: 18.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01586/10.64, allocations: 3.551 MB / 3.776 GB, free: 18.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.004412/10.64, allocations: 5.18 MB / 3.781 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001122/10.64, allocations: 14.34 kB / 3.781 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0365/10.68, allocations: 2.763 MB / 3.784 GB, free: 12.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003448/10.68, allocations: 315.9 kB / 3.784 GB, free: 12.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01322/10.7, allocations: 3.295 MB / 3.787 GB, free: 12.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005978/10.7, allocations: 262.5 kB / 3.787 GB, free: 12.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006428/10.7, allocations: 99.25 kB / 3.787 GB, free: 12.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/10.7, allocations: 5.125 kB / 3.787 GB, free: 12.2 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01297/10.72, allocations: 3.259 MB / 3.791 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.708e-05/10.72, allocations: 13.06 kB / 3.791 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01338/10.73, allocations: 1.587 MB / 3.792 GB, free: 12.05 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003193/10.73, allocations: 358.1 kB / 3.793 GB, free: 12.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007207/10.74, allocations: 2.558 MB / 3.795 GB, free: 11.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003882/10.75, allocations: 253.8 kB / 3.795 GB, free: 11.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005121/10.75, allocations: 101.3 kB / 3.795 GB, free: 11.45 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.001051/10.75, allocations: 268.9 kB / 3.796 GB, free: 11.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008589/10.75, allocations: 199.3 kB / 3.796 GB, free: 11.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02046/10.77, allocations: 7.698 MB / 3.803 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001431/10.77, allocations: 87.83 kB / 3.803 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.777e-05/10.77, allocations: 0 / 3.803 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01028/10.78, allocations: 6.602 MB / 3.81 GB, free: 9.418 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0172/10.8, allocations: 10.81 MB / 3.82 GB, free: 4.324 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/10.8, allocations: 1.406 kB / 3.82 GB, free: 4.324 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002368/10.8, allocations: 408.2 kB / 3.821 GB, free: 4.008 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001715/10.8, allocations: 349.2 kB / 3.821 GB, free: 3.742 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003109/10.8, allocations: 64.95 kB / 3.821 GB, free: 3.688 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002453/10.8, allocations: 2.58 MB / 3.824 GB, free: 1.121 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.857e-06/10.8, allocations: 0 / 3.824 GB, free: 1.121 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01577/10.82, allocations: 7.027 MB / 3.831 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00214/10.82, allocations: 0.7426 MB / 3.831 GB, free: 10.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006459/10.82, allocations: 51.8 kB / 3.831 GB, free: 10.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002347/10.82, allocations: 204.8 kB / 3.832 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004175/10.82, allocations: 147.5 kB / 3.832 GB, free: 10.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002351/10.82, allocations: 61.67 kB / 3.832 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002559/10.83, allocations: 1.17 MB / 3.833 GB, free: 9.027 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.06e-07/10.83, allocations: 0 / 3.833 GB, free: 9.027 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01067/10.84, allocations: 2.743 MB / 3.836 GB, free: 6.344 MB / 0.4948 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: 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.01187/10.85, allocations: 2.816 MB / 3.838 GB, free: 4.188 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.4063/11.26, allocations: 4.983 MB / 3.843 GB, free: 57.84 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.966e-06/11.26, allocations: 0 / 3.843 GB, free: 57.84 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004713/11.26, allocations: 2.338 MB / 3.845 GB, free: 57.77 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005468/11.27, allocations: 0.8661 MB / 3.846 GB, free: 57.76 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.276/11.54, allocations: 125.8 MB / 3.969 GB, free: 48.22 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002024/11.54, allocations: 2.259 MB / 3.971 GB, free: 47.43 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009108/11.55, allocations: 183.5 kB / 3.972 GB, free: 47.27 MB / 0.4948 GB Notification: Performance of SimCode: time 2.143e-06/11.55, allocations: 0 / 3.972 GB, free: 47.27 MB / 0.4948 GB Notification: Performance of Templates: time 0.457/12, allocations: 97.12 MB / 4.066 GB, free: 44.54 MB / 0.4948 GB