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.TestWaterPumpDefaultCV.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV,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.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV") Notification: Performance of loadModel(ModelicaTest): time 2.155/2.155, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.923e-05/2.949e-05, allocations: 3.984 kB / 309.7 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3214, allocations: 54.86 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.691/6.012, allocations: 2.613 GB / 2.969 GB, free: 61.63 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/6.012, allocations: 83.95 kB / 2.969 GB, free: 61.55 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.847/7.86, allocations: 437.4 MB / 3.396 GB, free: 12.67 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.985e-06/7.86, allocations: 0 / 3.396 GB, free: 12.67 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.382e-05/7.86, allocations: 16 kB / 3.396 GB, free: 12.65 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.005391/7.865, allocations: 1.776 MB / 3.398 GB, free: 10.84 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/7.865, allocations: 12.03 kB / 3.398 GB, free: 10.82 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003134/7.869, allocations: 334.5 kB / 3.398 GB, free: 10.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001227/7.87, allocations: 0.5892 MB / 3.399 GB, free: 9.875 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.961e-05/7.87, allocations: 51.5 kB / 3.399 GB, free: 9.828 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/7.87, allocations: 56 kB / 3.399 GB, free: 9.773 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002526/7.873, allocations: 0.9813 MB / 3.4 GB, free: 8.727 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/7.873, allocations: 11.94 kB / 3.4 GB, free: 8.715 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-05/7.873, allocations: 20 kB / 3.4 GB, free: 8.695 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.852e-05/7.873, allocations: 29.3 kB / 3.4 GB, free: 8.668 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002356/7.875, allocations: 0.8286 MB / 3.401 GB, free: 7.836 MB / 490.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.005674/7.881, allocations: 4.755 MB / 3.405 GB, free: 2.699 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002546/7.883, allocations: 0.7488 MB / 3.406 GB, free: 1.938 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004254/7.884, allocations: 230.1 kB / 3.406 GB, free: 1.711 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3377/8.222, allocations: 21.44 MB / 3.427 GB, free: 37.02 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/8.222, allocations: 39.34 kB / 3.427 GB, free: 36.98 MB / 490.7 MB Notification: Performance of pre-optimization done (n=47): time 4.04e-06/8.222, allocations: 1.312 kB / 3.427 GB, free: 36.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=68): time 0.02815/8.25, allocations: 3.997 MB / 3.431 GB, free: 36.55 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.75e-05/8.25, allocations: 114.5 kB / 3.431 GB, free: 36.42 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007937/8.251, allocations: 445.2 kB / 3.432 GB, free: 36.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/8.251, allocations: 37.73 kB / 3.432 GB, free: 36.27 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/8.251, allocations: 388.9 kB / 3.432 GB, free: 36.04 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/8.251, allocations: 232.7 kB / 3.432 GB, free: 35.93 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.631e-05/8.251, allocations: 16.88 kB / 3.432 GB, free: 35.93 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.395e-05/8.252, allocations: 339.9 kB / 3.433 GB, free: 35.62 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007653/8.252, allocations: 335.6 kB / 3.433 GB, free: 35.61 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008941/8.253, allocations: 0.5382 MB / 3.434 GB, free: 35.37 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009756/8.254, allocations: 386.4 kB / 3.434 GB, free: 35.36 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.407e-06/8.254, allocations: 2.625 kB / 3.434 GB, free: 35.36 MB / 490.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.003063/8.257, allocations: 1.168 MB / 3.435 GB, free: 35.28 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005029/8.258, allocations: 2.442 MB / 3.437 GB, free: 32.74 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.855e-05/8.258, allocations: 6.25 kB / 3.438 GB, free: 32.74 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009558/8.267, allocations: 1.317 MB / 3.439 GB, free: 32.71 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009551/8.268, allocations: 175.7 kB / 3.439 GB, free: 32.71 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002653/8.271, allocations: 1.763 MB / 3.441 GB, free: 31.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/8.273, allocations: 114.5 kB / 3.441 GB, free: 31.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/8.273, allocations: 61.09 kB / 3.441 GB, free: 31.66 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/8.273, allocations: 3.938 kB / 3.441 GB, free: 31.66 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003191/8.276, allocations: 1.131 MB / 3.442 GB, free: 31.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/8.276, allocations: 3.938 kB / 3.442 GB, free: 31.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003935/8.28, allocations: 0.6924 MB / 3.443 GB, free: 31.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/8.281, allocations: 184.2 kB / 3.443 GB, free: 31.61 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/8.283, allocations: 1.638 MB / 3.444 GB, free: 30.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/8.284, allocations: 117.9 kB / 3.445 GB, free: 30.56 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/8.285, allocations: 49.69 kB / 3.445 GB, free: 30.56 MB / 490.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 (70): * Single equations (assignments): 68 * 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 14,2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0003236/8.285, allocations: 162.3 kB / 3.445 GB, free: 30.45 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002269/8.285, allocations: 64.88 kB / 3.445 GB, free: 30.42 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006875/8.292, allocations: 4.079 MB / 3.449 GB, free: 30.08 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.883e-05/8.292, allocations: 47.58 kB / 3.449 GB, free: 30.08 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.054e-06/8.292, allocations: 6.219 kB / 3.449 GB, free: 30.08 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/8.292, allocations: 5.672 kB / 3.449 GB, free: 30.08 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00858/8.301, allocations: 5.351 MB / 3.454 GB, free: 29.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/8.301, allocations: 0 / 3.454 GB, free: 29.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005662/8.301, allocations: 108.8 kB / 3.454 GB, free: 29.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009564/8.311, allocations: 2.229 MB / 3.456 GB, free: 29.51 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001351/8.311, allocations: 26.88 kB / 3.456 GB, free: 29.51 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003313/8.315, allocations: 2.524 MB / 3.459 GB, free: 28.43 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.034e-06/8.315, allocations: 0 / 3.459 GB, free: 28.43 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005071/8.32, allocations: 2.751 MB / 3.462 GB, free: 28.05 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007368/8.32, allocations: 352.8 kB / 3.462 GB, free: 27.89 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001725/8.321, allocations: 13.56 kB / 3.462 GB, free: 27.89 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/8.322, allocations: 113.8 kB / 3.462 GB, free: 27.89 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/8.322, allocations: 72.19 kB / 3.462 GB, free: 27.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-05/8.322, allocations: 37.48 kB / 3.462 GB, free: 27.88 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.000648/8.323, allocations: 430.6 kB / 3.462 GB, free: 27.79 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.48e-07/8.323, allocations: 0 / 3.462 GB, free: 27.79 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005955/8.329, allocations: 1.583 MB / 3.464 GB, free: 27.79 MB / 490.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,$cse19.phase,$cse19.region,$cse20.phase,$cse20.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 13,2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.008703/8.337, allocations: 1.851 MB / 3.466 GB, free: 27.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004284/8.342, allocations: 1.912 MB / 3.468 GB, free: 27.55 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.74e-06/8.342, allocations: 0 / 3.468 GB, free: 27.55 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001921/8.344, allocations: 1.094 MB / 3.469 GB, free: 27.53 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002153/8.346, allocations: 301 kB / 3.469 GB, free: 27.52 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1884/8.534, allocations: 77.27 MB / 3.545 GB, free: 19.51 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006542/8.535, allocations: 1.191 MB / 3.546 GB, free: 18.47 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002831/8.535, allocations: 69.72 kB / 3.546 GB, free: 18.42 MB / 490.7 MB Notification: Performance of SimCode: time 1.905e-06/8.535, allocations: 2.906 kB / 3.546 GB, free: 18.42 MB / 490.7 MB Notification: Performance of Templates: time 0.06918/8.605, allocations: 46.41 MB / 3.591 GB, free: 5.441 MB / 0.4948 GB