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.TestExamplesVariants.InverseParameterization_laminar.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|eps_m_flow_turbulent|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|orifice.port_b.m_flow|orifice.port_b.p|orifice.port_b.h_outflow|sink.ports.1..m_flow|sink.ports.1..p|sink.ports.1..h_outflow|pipe1.port_b.m_flow|pipe1.port_b.p|pipe1.port_b.h_outflow|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|p_set.y|pipe2.port_b.m_flow|pipe2.port_b.p|pipe2.port_b.h_outflow|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar") Notification: Performance of loadModel(ModelicaTest): time 1.997/1.997, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.604e-05/1.613e-05, allocations: 0 / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2676, allocations: 48.69 MB / 320 MB, free: 14.43 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.222/6.49, allocations: 2.538 GB / 2.85 GB, free: 94.38 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/6.49, allocations: 80.92 kB / 2.85 GB, free: 94.38 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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.103/9.593, allocations: 0.718 GB / 3.568 GB, free: 35.54 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.54e-06/9.593, allocations: 0 / 3.568 GB, free: 35.54 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001352/9.593, allocations: 35.05 kB / 3.568 GB, free: 35.53 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 0.01175/9.605, allocations: 2.619 MB / 3.571 GB, free: 34.21 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/9.605, allocations: 10 kB / 3.571 GB, free: 34.21 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006099/9.611, allocations: 0.5775 MB / 3.571 GB, free: 34.14 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003227/9.615, allocations: 1.089 MB / 3.572 GB, free: 33.81 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/9.615, allocations: 48.38 kB / 3.572 GB, free: 33.81 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003122/9.615, allocations: 62.69 kB / 3.572 GB, free: 33.81 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004273/9.619, allocations: 1.741 MB / 3.574 GB, free: 33.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003781/9.623, allocations: 1.547 MB / 3.576 GB, free: 33.45 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.549e-05/9.623, allocations: 6.625 kB / 3.576 GB, free: 33.45 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002321/9.623, allocations: 3.594 kB / 3.576 GB, free: 33.45 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001358/9.624, allocations: 86.33 kB / 3.576 GB, free: 33.45 MB / 458.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.6536/10.28, allocations: 136.6 MB / 3.709 GB, free: 21.18 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002702/10.28, allocations: 1.049 MB / 3.71 GB, free: 21.14 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001138/10.28, allocations: 0.5324 MB / 3.711 GB, free: 21.13 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03908/10.32, allocations: 17.42 MB / 3.728 GB, free: 25.68 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.069e-05/10.32, allocations: 46.25 kB / 3.728 GB, free: 25.64 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001436/10.32, allocations: 179.3 kB / 3.728 GB, free: 25.64 MB / 490.7 MB Notification: Performance of pre-optimization done (n=91): time 5.328e-06/10.32, allocations: 0 / 3.728 GB, free: 25.64 MB / 490.7 MB Notification: Performance of matching and sorting (n=129): time 0.07541/10.4, allocations: 9.749 MB / 3.737 GB, free: 25.05 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001518/10.4, allocations: 218.3 kB / 3.738 GB, free: 24.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001356/10.4, allocations: 0.7522 MB / 3.738 GB, free: 24.64 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004344/10.4, allocations: 25.7 kB / 3.738 GB, free: 24.61 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004558/10.4, allocations: 0.6528 MB / 3.739 GB, free: 24.28 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006219/10.4, allocations: 433.6 kB / 3.739 GB, free: 24.06 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002594/10.4, allocations: 0 / 3.739 GB, free: 24.06 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002261/10.4, allocations: 373.5 kB / 3.74 GB, free: 23.75 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002801/10.4, allocations: 1.265 MB / 3.741 GB, free: 23.75 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003154/10.41, allocations: 1.7 MB / 3.743 GB, free: 23.24 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009434/10.42, allocations: 1.896 MB / 3.745 GB, free: 23.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.052e-05/10.42, allocations: 2.312 kB / 3.745 GB, free: 23.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.01677/10.43, allocations: 4.604 MB / 3.749 GB, free: 23.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002273/10.44, allocations: 4.795 MB / 3.754 GB, free: 18.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-05/10.44, allocations: 12.88 kB / 3.754 GB, free: 18.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01779/10.45, allocations: 3.96 MB / 3.758 GB, free: 17.94 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001781/10.46, allocations: 328.3 kB / 3.758 GB, free: 17.93 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01644/10.47, allocations: 5.748 MB / 3.764 GB, free: 16.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004676/10.48, allocations: 274 kB / 3.764 GB, free: 16.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006214/10.48, allocations: 126.6 kB / 3.764 GB, free: 16.82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/10.48, allocations: 3.562 kB / 3.764 GB, free: 16.82 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01384/10.49, allocations: 2.905 MB / 3.767 GB, free: 16.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.047e-05/10.49, allocations: 11.53 kB / 3.767 GB, free: 16.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003126/10.49, allocations: 0.5713 MB / 3.767 GB, free: 16.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002818/10.5, allocations: 454.8 kB / 3.768 GB, free: 16.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004052/10.5, allocations: 1.788 MB / 3.77 GB, free: 15.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002845/10.5, allocations: 178.3 kB / 3.77 GB, free: 15.63 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003918/10.5, allocations: 100.9 kB / 3.77 GB, free: 15.63 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.orifice.m_flow:DUMMY_DER(fixed = false ) "Mass flow rate in design flow direction" type: Real $DER.pipe1.flowModel.states[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy" type: Real [2] $DER.pipe1.flowModel.mus_act[1]:DUMMY_DER(fixed = false ) "Actual viscosity per segment" type: Real [1] $DER.pump.m_flow:DUMMY_DER(fixed = false ) "Mass flow rate (total)" type: Real $DER.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 12 (pipe2.flowModel.states[2].phase,pipe2.flowModel.states[1].phase,pipe1.flowModel.states[2].phase,pipe1.flowModel.states[1].phase,pump.heatTransfer.states[1].phase,source.medium.phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase,orifice.state_b.phase,orifice.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {5 21,6 24} Notification: Performance of prepare postOptimizeDAE: time 0.0009247/10.51, allocations: 167.4 kB / 3.77 GB, free: 15.52 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005782/10.51, allocations: 132 kB / 3.77 GB, free: 15.46 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01821/10.52, allocations: 6.683 MB / 3.777 GB, free: 15.07 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.567e-05/10.52, allocations: 39.16 kB / 3.777 GB, free: 15.07 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/10.52, allocations: 0 / 3.777 GB, free: 15.07 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.752e-05/10.52, allocations: 5.859 kB / 3.777 GB, free: 15.07 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02225/10.55, allocations: 8.986 MB / 3.785 GB, free: 14.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.128e-05/10.55, allocations: 0 / 3.785 GB, free: 14.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009692/10.55, allocations: 145.2 kB / 3.786 GB, free: 14.45 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01411/10.56, allocations: 5.239 MB / 3.791 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004438/10.56, allocations: 44.59 kB / 3.791 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01737/10.58, allocations: 6.893 MB / 3.797 GB, free: 11.94 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-06/10.58, allocations: 4.938 kB / 3.797 GB, free: 11.93 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01463/10.59, allocations: 5.654 MB / 3.803 GB, free: 8.898 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001837/10.6, allocations: 0.6259 MB / 3.804 GB, free: 8.52 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005921/10.6, allocations: 4 kB / 3.804 GB, free: 8.516 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003599/10.6, allocations: 193.9 kB / 3.804 GB, free: 8.379 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003987/10.6, allocations: 93.75 kB / 3.804 GB, free: 8.336 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003166/10.6, allocations: 77.16 kB / 3.804 GB, free: 8.297 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001496/10.6, allocations: 0.7818 MB / 3.805 GB, free: 7.824 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.038e-06/10.6, allocations: 0 / 3.805 GB, free: 7.824 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008849/10.61, allocations: 2.047 MB / 3.807 GB, free: 6.086 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 15 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse21.phase,$cse21.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {5 21,6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.01073/10.62, allocations: 2.487 MB / 3.809 GB, free: 4.367 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01994/10.64, allocations: 4.779 MB / 3.814 GB, free: 1.879 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/10.64, allocations: 0 / 3.814 GB, free: 1.879 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008042/10.65, allocations: 2.177 MB / 3.816 GB, free: 0.7969 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003516/10.65, allocations: 485.2 kB / 3.816 GB, free: 0.5391 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3073/10.96, allocations: 3.575 MB / 3.82 GB, free: 65.21 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/10.96, allocations: 1.454 MB / 3.821 GB, free: 64.49 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00066/10.96, allocations: 124.9 kB / 3.821 GB, free: 64.49 MB / 490.7 MB Notification: Performance of SimCode: time 3.295e-06/10.96, allocations: 0 / 3.821 GB, free: 64.49 MB / 490.7 MB Notification: Performance of Templates: time 0.1058/11.07, allocations: 68.3 MB / 3.888 GB, free: 61.16 MB / 490.7 MB