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.TestWaterPumpNPSH.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.TestWaterPumpNPSH,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.TestWaterPumpNPSH") Notification: Performance of loadModel(ModelicaTest): time 1.822/1.822, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000439/0.0004388, allocations: 8 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2796, allocations: 48.7 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.916/6.196, allocations: 2.507 GB / 2.831 GB, free: 36.96 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003624/6.196, allocations: 86.7 kB / 2.831 GB, free: 36.91 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.958/8.155, allocations: 427.5 MB / 3.248 GB, free: 46.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.748e-06/8.155, allocations: 0 / 3.248 GB, free: 46.11 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.845e-05/8.155, allocations: 22 kB / 3.248 GB, free: 46.11 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.006166/8.161, allocations: 1.796 MB / 3.25 GB, free: 45.35 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/8.161, allocations: 10.91 kB / 3.25 GB, free: 45.35 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003337/8.164, allocations: 343.7 kB / 3.25 GB, free: 45.31 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/8.166, allocations: 0.5819 MB / 3.251 GB, free: 45.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.156e-05/8.166, allocations: 51.94 kB / 3.251 GB, free: 45.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/8.166, allocations: 60.08 kB / 3.251 GB, free: 45.07 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00286/8.169, allocations: 1.008 MB / 3.252 GB, free: 44.87 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/8.169, allocations: 2.906 kB / 3.252 GB, free: 44.87 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.403e-05/8.169, allocations: 28.06 kB / 3.252 GB, free: 44.87 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-05/8.169, allocations: 26.58 kB / 3.252 GB, free: 44.86 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003065/8.172, allocations: 0.9192 MB / 3.253 GB, free: 44.86 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.005641/8.178, allocations: 4.816 MB / 3.258 GB, free: 41.47 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002732/8.18, allocations: 0.7646 MB / 3.258 GB, free: 41.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04355/8.224, allocations: 21.57 MB / 3.279 GB, free: 27.74 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/8.224, allocations: 45.06 kB / 3.28 GB, free: 27.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=46): time 3.771e-06/8.224, allocations: 0 / 3.28 GB, free: 27.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=63): time 0.02915/8.253, allocations: 4.377 MB / 3.284 GB, free: 27.08 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/8.253, allocations: 112.9 kB / 3.284 GB, free: 26.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007036/8.254, allocations: 436.3 kB / 3.284 GB, free: 26.83 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/8.254, allocations: 40.7 kB / 3.284 GB, free: 26.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001875/8.254, allocations: 382.1 kB / 3.285 GB, free: 26.54 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/8.255, allocations: 216.4 kB / 3.285 GB, free: 26.41 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.848e-05/8.255, allocations: 13.44 kB / 3.285 GB, free: 26.41 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.612e-05/8.255, allocations: 348.4 kB / 3.285 GB, free: 26.09 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/8.256, allocations: 380 kB / 3.286 GB, free: 26.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001248/8.257, allocations: 0.5875 MB / 3.286 GB, free: 25.84 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/8.259, allocations: 443.2 kB / 3.287 GB, free: 25.84 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.296e-06/8.259, allocations: 3.375 kB / 3.287 GB, free: 25.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003636/8.262, allocations: 1.237 MB / 3.288 GB, free: 25.76 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004811/8.263, allocations: 2.436 MB / 3.29 GB, free: 23.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/8.263, allocations: 7.125 kB / 3.29 GB, free: 23.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005681/8.268, allocations: 0.8998 MB / 3.291 GB, free: 23.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008594/8.269, allocations: 172.9 kB / 3.291 GB, free: 23.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003592/8.273, allocations: 1.698 MB / 3.293 GB, free: 38.15 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/8.274, allocations: 103.6 kB / 3.293 GB, free: 38.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/8.274, allocations: 46.31 kB / 3.293 GB, free: 38.14 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/8.274, allocations: 3.125 kB / 3.293 GB, free: 38.14 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003687/8.278, allocations: 1.218 MB / 3.294 GB, free: 38.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/8.278, allocations: 4.656 kB / 3.294 GB, free: 38.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003076/8.281, allocations: 0.5904 MB / 3.295 GB, free: 38.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008609/8.282, allocations: 168.7 kB / 3.295 GB, free: 38.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002836/8.285, allocations: 1.626 MB / 3.297 GB, free: 37.06 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009128/8.286, allocations: 101.9 kB / 3.297 GB, free: 37.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/8.286, allocations: 46.53 kB / 3.297 GB, free: 37.05 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 67 * 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.0005918/8.287, allocations: 302.3 kB / 3.297 GB, free: 36.86 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001879/8.287, allocations: 60.34 kB / 3.297 GB, free: 36.83 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006642/8.293, allocations: 3.856 MB / 3.301 GB, free: 36.46 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.435e-05/8.294, allocations: 45.03 kB / 3.301 GB, free: 36.46 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.976e-06/8.294, allocations: 3.156 kB / 3.301 GB, free: 36.46 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/8.294, allocations: 6.703 kB / 3.301 GB, free: 36.46 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008481/8.302, allocations: 5.192 MB / 3.306 GB, free: 35.93 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.504e-06/8.302, allocations: 0.9375 kB / 3.306 GB, free: 35.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005084/8.303, allocations: 113.7 kB / 3.306 GB, free: 35.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005944/8.309, allocations: 1.633 MB / 3.308 GB, free: 35.84 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/8.309, allocations: 19.62 kB / 3.308 GB, free: 35.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003586/8.312, allocations: 2.38 MB / 3.31 GB, free: 34.76 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.375e-06/8.312, allocations: 0 / 3.31 GB, free: 34.76 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004936/8.317, allocations: 2.642 MB / 3.313 GB, free: 34.39 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005685/8.318, allocations: 350.7 kB / 3.313 GB, free: 34.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/8.318, allocations: 12.75 kB / 3.313 GB, free: 34.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008418/8.319, allocations: 100 kB / 3.313 GB, free: 34.19 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/8.319, allocations: 60.36 kB / 3.313 GB, free: 34.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.489e-05/8.319, allocations: 35.78 kB / 3.313 GB, free: 34.18 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006807/8.32, allocations: 434.8 kB / 3.314 GB, free: 34.09 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.69e-07/8.32, allocations: 0 / 3.314 GB, free: 34.09 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005695/8.326, allocations: 1.558 MB / 3.315 GB, free: 33.86 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,$cse17.phase,$cse17.region,$cse18.phase,$cse18.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 41 * 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.008436/8.334, allocations: 1.842 MB / 3.317 GB, free: 33.43 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005671/8.34, allocations: 2.036 MB / 3.319 GB, free: 33.35 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.527e-06/8.34, allocations: 0 / 3.319 GB, free: 33.35 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002261/8.342, allocations: 1.121 MB / 3.32 GB, free: 33.33 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/8.344, allocations: 297.8 kB / 3.32 GB, free: 33.31 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4505/8.795, allocations: 77.26 MB / 3.396 GB, free: 55.43 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008335/8.795, allocations: 1.186 MB / 3.397 GB, free: 54.71 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003427/8.796, allocations: 74.56 kB / 3.397 GB, free: 54.71 MB / 458.7 MB Notification: Performance of SimCode: time 1.761e-06/8.796, allocations: 0 / 3.397 GB, free: 54.71 MB / 458.7 MB Notification: Performance of Templates: time 0.06998/8.866, allocations: 46.08 MB / 3.442 GB, free: 52.65 MB / 458.7 MB