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.TestComponents.Machines.TestWaterPumpDefault.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.TestComponents.Machines.TestWaterPumpDefault,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|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|valveOpening.y|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|Valve.minLimiter.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault") Notification: Performance of loadModel(ModelicaTest): time 1.962/1.962, allocations: 209.3 MB / 222.4 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.121e-05/3.14e-05, allocations: 4 kB / 277.8 MB, free: 15.29 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08723/0.08729, allocations: 48.7 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.157/6.244, allocations: 2.502 GB / 2.821 GB, free: 126.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/6.244, allocations: 78.06 kB / 2.821 GB, free: 126.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.683/7.927, allocations: 425.4 MB / 3.236 GB, free: 44.28 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.344e-06/7.927, allocations: 0 / 3.236 GB, free: 44.28 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.562e-05/7.927, allocations: 12 kB / 3.236 GB, free: 44.27 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.005707/7.933, allocations: 1.708 MB / 3.238 GB, free: 42.66 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/7.933, allocations: 8.031 kB / 3.238 GB, free: 42.66 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003206/7.936, allocations: 312.8 kB / 3.238 GB, free: 42.42 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001387/7.938, allocations: 0.5824 MB / 3.239 GB, free: 41.9 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.961e-05/7.938, allocations: 45.31 kB / 3.239 GB, free: 41.86 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/7.938, allocations: 52 kB / 3.239 GB, free: 41.81 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00259/7.94, allocations: 0.9703 MB / 3.24 GB, free: 40.96 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.417e-05/7.94, allocations: 7.938 kB / 3.24 GB, free: 40.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-05/7.941, allocations: 28 kB / 3.24 GB, free: 40.92 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.818e-05/7.941, allocations: 17 kB / 3.24 GB, free: 40.91 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002381/7.943, allocations: 0.8007 MB / 3.241 GB, free: 40.23 MB / 442.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.005506/7.948, allocations: 4.723 MB / 3.245 GB, free: 35.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002148/7.951, allocations: 0.6293 MB / 3.246 GB, free: 34.57 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004022/7.951, allocations: 208.8 kB / 3.246 GB, free: 34.36 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04066/7.992, allocations: 21.4 MB / 3.267 GB, free: 10.31 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/7.992, allocations: 42.5 kB / 3.267 GB, free: 10.26 MB / 442.7 MB Notification: Performance of pre-optimization done (n=43): time 4.716e-06/7.992, allocations: 4 kB / 3.267 GB, free: 10.26 MB / 442.7 MB Notification: Performance of matching and sorting (n=60): time 0.02631/8.018, allocations: 3.744 MB / 3.271 GB, free: 6.441 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/8.018, allocations: 115.3 kB / 3.271 GB, free: 6.305 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006606/8.019, allocations: 432.6 kB / 3.271 GB, free: 5.875 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001088/8.019, allocations: 33.7 kB / 3.271 GB, free: 5.836 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/8.019, allocations: 392.1 kB / 3.272 GB, free: 5.453 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/8.019, allocations: 196.9 kB / 3.272 GB, free: 5.262 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.36e-05/8.02, allocations: 16 kB / 3.272 GB, free: 5.246 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.394e-05/8.02, allocations: 338.8 kB / 3.272 GB, free: 4.906 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005846/8.02, allocations: 273.5 kB / 3.272 GB, free: 4.641 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006721/8.021, allocations: 486.1 kB / 3.273 GB, free: 4.074 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007827/8.022, allocations: 327.1 kB / 3.273 GB, free: 3.754 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.64e-06/8.022, allocations: 7.938 kB / 3.273 GB, free: 3.746 MB / 442.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002497/8.024, allocations: 0.9884 MB / 3.274 GB, free: 2.746 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005004/8.025, allocations: 2.44 MB / 3.277 GB, free: 116 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/8.025, allocations: 8 kB / 3.277 GB, free: 108 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00513/8.03, allocations: 0.8203 MB / 3.277 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008599/8.031, allocations: 159.8 kB / 3.278 GB, free: 15.13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002783/8.034, allocations: 1.608 MB / 3.279 GB, free: 13.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/8.035, allocations: 99.89 kB / 3.279 GB, free: 13.37 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/8.035, allocations: 47.97 kB / 3.279 GB, free: 13.32 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/8.035, allocations: 4 kB / 3.279 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002854/8.038, allocations: 0.9516 MB / 3.28 GB, free: 12.37 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.058e-05/8.038, allocations: 8 kB / 3.28 GB, free: 12.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002615/8.041, allocations: 0.513 MB / 3.281 GB, free: 11.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008964/8.042, allocations: 167.8 kB / 3.281 GB, free: 11.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00238/8.044, allocations: 1.538 MB / 3.282 GB, free: 10.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/8.045, allocations: 103.9 kB / 3.282 GB, free: 9.988 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/8.045, allocations: 39.98 kB / 3.282 GB, free: 9.949 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].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 (66): * Single equations (assignments): 64 * 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 {2 10,2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003338/8.046, allocations: 154.3 kB / 3.283 GB, free: 9.797 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/8.046, allocations: 67.25 kB / 3.283 GB, free: 9.73 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007431/8.053, allocations: 3.918 MB / 3.287 GB, free: 5.754 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.687e-05/8.053, allocations: 43.92 kB / 3.287 GB, free: 5.711 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.561e-06/8.054, allocations: 8 kB / 3.287 GB, free: 5.703 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.838e-05/8.054, allocations: 3.984 kB / 3.287 GB, free: 5.699 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008714/8.062, allocations: 4.982 MB / 3.291 GB, free: 0.625 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/8.062, allocations: 0 / 3.291 GB, free: 0.625 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005722/8.063, allocations: 111.9 kB / 3.292 GB, free: 0.5156 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2758/8.339, allocations: 1.763 MB / 3.293 GB, free: 65.35 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001254/8.339, allocations: 23 kB / 3.293 GB, free: 65.35 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002956/8.342, allocations: 2.362 MB / 3.296 GB, free: 64.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.274e-06/8.342, allocations: 3.469 kB / 3.296 GB, free: 64.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003979/8.346, allocations: 2.466 MB / 3.298 GB, free: 64.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006504/8.347, allocations: 342.8 kB / 3.298 GB, free: 63.92 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001479/8.347, allocations: 18.08 kB / 3.298 GB, free: 63.92 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008852/8.348, allocations: 101.3 kB / 3.298 GB, free: 63.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/8.348, allocations: 63.91 kB / 3.299 GB, free: 63.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-05/8.348, allocations: 28.14 kB / 3.299 GB, free: 63.91 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006799/8.349, allocations: 418.7 kB / 3.299 GB, free: 63.81 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.48e-06/8.349, allocations: 0.9375 kB / 3.299 GB, free: 63.81 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006189/8.355, allocations: 1.544 MB / 3.3 GB, free: 63.81 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 25 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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 {2 9,2 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.009255/8.364, allocations: 1.838 MB / 3.302 GB, free: 63.71 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004165/8.368, allocations: 1.694 MB / 3.304 GB, free: 63.67 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/8.368, allocations: 1.031 kB / 3.304 GB, free: 63.67 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002066/8.37, allocations: 1.027 MB / 3.305 GB, free: 63.66 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002032/8.373, allocations: 288.8 kB / 3.305 GB, free: 63.65 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1871/8.56, allocations: 75.92 MB / 3.379 GB, free: 61.48 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006627/8.56, allocations: 1.174 MB / 3.38 GB, free: 60.77 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003005/8.561, allocations: 70.28 kB / 3.381 GB, free: 60.75 MB / 458.7 MB Notification: Performance of SimCode: time 1.955e-06/8.561, allocations: 0 / 3.381 GB, free: 60.75 MB / 458.7 MB Notification: Performance of Templates: time 0.06698/8.628, allocations: 45.33 MB / 3.425 GB, free: 35.83 MB / 458.7 MB