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.TestComponents.Machines.TestControlledPump.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.y|sink.ports.1..m_flow|sink.ports.1..p|sink.ports.1..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valve.port_b.m_flow|valve.port_b.p|valve.port_b.h_outflow|valve.minLimiter.y|valveOpening.y|pressure1.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|pump1.port_b.m_flow|pump1.port_b.p|pump1.port_b.h_outflow|valve1.port_b.m_flow|valve1.port_b.p|valve1.port_b.h_outflow|valve1.minLimiter.y|valveOpening1.y|sinkPressure.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump") Notification: Performance of loadModel(ModelicaTest): time 2.334/2.334, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.367e-05/2.384e-05, allocations: 4 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2978, allocations: 54.86 MB / 358.1 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.284/6.582, allocations: 2.613 GB / 2.963 GB, free: 5.191 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/6.582, allocations: 83.95 kB / 2.963 GB, free: 5.109 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.653/10.24, allocations: 0.751 GB / 3.714 GB, free: 41.32 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.193e-06/10.24, allocations: 0 / 3.714 GB, free: 41.32 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001511/10.24, allocations: 37.22 kB / 3.714 GB, free: 41.32 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: 289 * Number of variables: 289 Notification: Performance of Generate backend data structure: time 0.01023/10.25, allocations: 2.711 MB / 3.717 GB, free: 40.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/10.25, allocations: 11.25 kB / 3.717 GB, free: 40.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007259/10.25, allocations: 0.6429 MB / 3.717 GB, free: 40.22 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002885/10.26, allocations: 1.008 MB / 3.718 GB, free: 39.89 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/10.26, allocations: 48.75 kB / 3.718 GB, free: 39.89 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002995/10.26, allocations: 66.12 kB / 3.718 GB, free: 39.89 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003055/10.26, allocations: 1.076 MB / 3.719 GB, free: 39.88 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003453/10.26, allocations: 1.302 MB / 3.721 GB, free: 39.49 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.544e-05/10.26, allocations: 2.625 kB / 3.721 GB, free: 39.49 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002147/10.26, allocations: 7.094 kB / 3.721 GB, free: 39.49 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.917e-05/10.26, allocations: 42.36 kB / 3.721 GB, free: 39.48 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.1926/10.46, allocations: 73.11 MB / 3.792 GB, free: 17.16 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002031/10.46, allocations: 0.7958 MB / 3.793 GB, free: 17.12 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008891/10.46, allocations: 406.5 kB / 3.793 GB, free: 17.11 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04653/10.51, allocations: 20.22 MB / 3.813 GB, free: 19.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.588e-05/10.51, allocations: 42.25 kB / 3.813 GB, free: 19.56 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=86): time 4.468e-06/10.51, allocations: 3.312 kB / 3.813 GB, free: 19.56 MB / 0.5261 GB Notification: Performance of matching and sorting (n=120): time 0.03708/10.54, allocations: 5.074 MB / 3.818 GB, free: 19.02 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/10.54, allocations: 170.5 kB / 3.818 GB, free: 18.83 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/10.54, allocations: 0.7031 MB / 3.819 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000261/10.54, allocations: 25.7 kB / 3.819 GB, free: 18.63 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004115/10.55, allocations: 0.6362 MB / 3.82 GB, free: 18.25 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003845/10.55, allocations: 395.2 kB / 3.82 GB, free: 17.99 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/10.55, allocations: 0 / 3.82 GB, free: 17.99 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002105/10.55, allocations: 366 kB / 3.82 GB, free: 17.68 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/10.55, allocations: 0.5262 MB / 3.821 GB, free: 17.67 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001399/10.55, allocations: 0.9225 MB / 3.822 GB, free: 17.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005729/10.55, allocations: 0.9696 MB / 3.823 GB, free: 17.17 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.939e-05/10.55, allocations: 3.781 kB / 3.823 GB, free: 17.17 MB / 0.5261 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.00897/10.56, allocations: 2.139 MB / 3.825 GB, free: 17.04 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002286/10.57, allocations: 4.618 MB / 3.829 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-05/10.57, allocations: 10.69 kB / 3.829 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00383/10.57, allocations: 0.8352 MB / 3.83 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001871/10.57, allocations: 366.4 kB / 3.83 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007738/10.58, allocations: 3.388 MB / 3.834 GB, free: 26.03 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002839/10.58, allocations: 234.6 kB / 3.834 GB, free: 26 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003686/10.58, allocations: 86.77 kB / 3.834 GB, free: 26 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/10.58, allocations: 8.281 kB / 3.834 GB, free: 26 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006312/10.59, allocations: 1.459 MB / 3.836 GB, free: 25.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.794e-05/10.59, allocations: 11.47 kB / 3.836 GB, free: 25.96 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.162e-05/10.59, allocations: 29.92 kB / 3.836 GB, free: 25.95 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004361/10.59, allocations: 0.611 MB / 3.836 GB, free: 25.95 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.457e-05/10.59, allocations: 27.33 kB / 3.836 GB, free: 25.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002114/10.6, allocations: 199.2 kB / 3.836 GB, free: 25.92 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002599/10.6, allocations: 78.34 kB / 3.836 GB, free: 25.92 MB / 0.5417 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.pump1.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.pump.medium.p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" 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: 53 * Number of states: 0 () * Number of discrete variables: 12 (sink.medium.phase,pump.heatTransfer.states[1].phase,sink1.medium.phase,pump1.heatTransfer.states[1].phase,source.medium.phase,source1.medium.phase,valve1.state_b.phase,valve1.state_a.phase,pump1.monitoring.state_in.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 138 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,3 11,1 7,2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0006038/10.6, allocations: 158.3 kB / 3.837 GB, free: 25.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000385/10.6, allocations: 127.3 kB / 3.837 GB, free: 25.74 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01185/10.61, allocations: 5.922 MB / 3.842 GB, free: 25.2 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.572e-05/10.61, allocations: 66.94 kB / 3.843 GB, free: 25.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/10.61, allocations: 3.688 kB / 3.843 GB, free: 25.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.675e-05/10.61, allocations: 7.078 kB / 3.843 GB, free: 25.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01567/10.62, allocations: 7.91 MB / 3.85 GB, free: 24.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.089e-05/10.62, allocations: 3.938 kB / 3.85 GB, free: 24.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00132/10.63, allocations: 241.5 kB / 3.851 GB, free: 24.49 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005084/10.63, allocations: 2.27 MB / 3.853 GB, free: 24.35 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002485/10.63, allocations: 24.28 kB / 3.853 GB, free: 24.35 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007491/10.64, allocations: 4.873 MB / 3.858 GB, free: 22.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.574e-06/10.64, allocations: 0 / 3.858 GB, free: 22.18 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008424/10.65, allocations: 4.126 MB / 3.862 GB, free: 21.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/10.65, allocations: 498.8 kB / 3.862 GB, free: 21.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004278/10.65, allocations: 7.469 kB / 3.862 GB, free: 21.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00224/10.65, allocations: 190.7 kB / 3.862 GB, free: 21.42 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003784/10.65, allocations: 119.6 kB / 3.862 GB, free: 21.42 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001653/10.65, allocations: 54.66 kB / 3.862 GB, free: 21.42 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001142/10.65, allocations: 0.6207 MB / 3.863 GB, free: 21.31 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.04e-06/10.65, allocations: 0 / 3.863 GB, free: 21.31 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00811/10.66, allocations: 1.829 MB / 3.865 GB, free: 21.08 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 36 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,sink.medium.phase,pump.heatTransfer.states[1].phase,sink1.medium.phase,pump1.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * 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 {2 7,3 16,1 7,2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.01031/10.67, allocations: 2.364 MB / 3.867 GB, free: 20.57 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.007206/10.68, allocations: 2.866 MB / 3.87 GB, free: 20.52 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/10.68, allocations: 5.469 kB / 3.87 GB, free: 20.52 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00379/10.68, allocations: 1.722 MB / 3.872 GB, free: 20.48 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003688/10.69, allocations: 0.5107 MB / 3.872 GB, free: 20.44 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006953/10.69, allocations: 3.347 MB / 3.875 GB, free: 19.52 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/10.7, allocations: 1.547 MB / 3.877 GB, free: 18.25 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005776/10.7, allocations: 123.1 kB / 3.877 GB, free: 18.15 MB / 0.5417 GB Notification: Performance of SimCode: time 2.403e-06/10.7, allocations: 0 / 3.877 GB, free: 18.15 MB / 0.5417 GB Notification: Performance of Templates: time 0.4482/11.14, allocations: 79.84 MB / 3.955 GB, free: 83.35 MB / 0.5417 GB