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.TestControlledPump.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.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.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump") Notification: Performance of loadModel(ModelicaTest): time 2.013/2.013, allocations: 209.3 MB / 222.4 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.189e-05/3.209e-05, allocations: 4 kB / 277.9 MB, free: 15.29 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08883/0.08889, allocations: 48.7 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.329/6.418, allocations: 2.503 GB / 2.822 GB, free: 103.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/6.418, allocations: 82.78 kB / 2.822 GB, free: 103.1 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.254/9.672, allocations: 0.7374 GB / 3.56 GB, free: 30.48 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.217e-06/9.672, allocations: 0 / 3.56 GB, free: 30.48 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001377/9.672, allocations: 40.03 kB / 3.56 GB, free: 30.47 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: 289 * Number of variables: 289 Notification: Performance of Generate backend data structure: time 0.009499/9.682, allocations: 2.628 MB / 3.562 GB, free: 29.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/9.682, allocations: 7.531 kB / 3.562 GB, free: 29.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006696/9.689, allocations: 0.6185 MB / 3.563 GB, free: 29.11 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002795/9.692, allocations: 1.003 MB / 3.564 GB, free: 28.78 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/9.692, allocations: 98.09 kB / 3.564 GB, free: 28.78 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002133/9.692, allocations: 114.7 kB / 3.564 GB, free: 28.78 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005708/9.698, allocations: 1.914 MB / 3.566 GB, free: 28.38 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.535e-05/9.698, allocations: 8.625 kB / 3.566 GB, free: 28.38 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002029/9.698, allocations: 58.23 kB / 3.566 GB, free: 28.38 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.065e-05/9.698, allocations: 48.42 kB / 3.566 GB, free: 28.37 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005444/9.704, allocations: 1.618 MB / 3.568 GB, free: 28.36 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.01246/9.716, allocations: 9.297 MB / 3.577 GB, free: 21.98 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004981/9.721, allocations: 1.402 MB / 3.578 GB, free: 21.95 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00173/9.723, allocations: 448.8 kB / 3.579 GB, free: 21.94 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05895/9.782, allocations: 21.58 MB / 3.6 GB, free: 23.98 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.936e-05/9.782, allocations: 49.06 kB / 3.6 GB, free: 23.93 MB / 474.7 MB Notification: Performance of pre-optimization done (n=94): time 4.196e-06/9.782, allocations: 0 / 3.6 GB, free: 23.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=134): time 0.04927/9.831, allocations: 8.032 MB / 3.608 GB, free: 22.93 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/9.831, allocations: 173 kB / 3.608 GB, free: 22.73 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00132/9.833, allocations: 0.7229 MB / 3.608 GB, free: 22.57 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000304/9.833, allocations: 50.58 kB / 3.609 GB, free: 22.54 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004072/9.834, allocations: 0.6154 MB / 3.609 GB, free: 22.17 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004297/9.834, allocations: 456.6 kB / 3.61 GB, free: 21.88 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/9.834, allocations: 31.31 kB / 3.61 GB, free: 21.88 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002141/9.834, allocations: 369.7 kB / 3.61 GB, free: 21.57 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/9.836, allocations: 0.5602 MB / 3.61 GB, free: 21.57 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001688/9.838, allocations: 0.9728 MB / 3.611 GB, free: 21.08 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001981/9.84, allocations: 0.6874 MB / 3.612 GB, free: 21.04 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.237e-05/9.84, allocations: 3.125 kB / 3.612 GB, free: 21.04 MB / 474.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.005393/9.845, allocations: 1.985 MB / 3.614 GB, free: 20.84 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002323/9.847, allocations: 4.621 MB / 3.619 GB, free: 15.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.601e-05/9.847, allocations: 15.19 kB / 3.619 GB, free: 15.98 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008293/9.856, allocations: 1.297 MB / 3.62 GB, free: 15.89 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002469/9.858, allocations: 442.6 kB / 3.62 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005478/9.864, allocations: 3.103 MB / 3.623 GB, free: 13.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002867/9.867, allocations: 234.6 kB / 3.624 GB, free: 13.72 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004048/9.867, allocations: 104.1 kB / 3.624 GB, free: 13.71 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/9.867, allocations: 6.625 kB / 3.624 GB, free: 13.71 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004928/9.872, allocations: 1.769 MB / 3.625 GB, free: 13.59 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.291e-05/9.872, allocations: 14.75 kB / 3.625 GB, free: 13.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00224/9.874, allocations: 0.5386 MB / 3.626 GB, free: 13.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004196/9.879, allocations: 0.5802 MB / 3.626 GB, free: 13.52 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003067/9.882, allocations: 1.647 MB / 3.628 GB, free: 12.39 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002327/9.884, allocations: 228.6 kB / 3.628 GB, free: 12.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003034/9.885, allocations: 92.89 kB / 3.628 GB, free: 12.33 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (source.medium.phase,sink.medium.phase,pump.heatTransfer.states[1].phase,source1.medium.phase,sink1.medium.phase,pump1.heatTransfer.states[1].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 (148): * Single equations (assignments): 144 * 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.0005704/9.885, allocations: 204.1 kB / 3.629 GB, free: 12.15 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004134/9.886, allocations: 128.6 kB / 3.629 GB, free: 12.08 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01255/9.898, allocations: 7.199 MB / 3.636 GB, free: 8.777 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.161e-05/9.898, allocations: 81.83 kB / 3.636 GB, free: 8.754 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/9.898, allocations: 0 / 3.636 GB, free: 8.754 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.954e-05/9.898, allocations: 7.5 kB / 3.636 GB, free: 8.754 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01632/9.915, allocations: 9.468 MB / 3.645 GB, free: 0.9844 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.35e-05/9.915, allocations: 4 kB / 3.645 GB, free: 0.9805 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/9.917, allocations: 324.2 kB / 3.645 GB, free: 0.7266 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009843/9.927, allocations: 2.742 MB / 3.648 GB, free: 14.61 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003009/9.927, allocations: 43.31 kB / 3.648 GB, free: 14.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007124/9.934, allocations: 4.381 MB / 3.652 GB, free: 10.34 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/9.934, allocations: 0 / 3.652 GB, free: 10.34 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009581/9.944, allocations: 4.597 MB / 3.657 GB, free: 6.074 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/9.945, allocations: 0.5407 MB / 3.657 GB, free: 5.586 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003954/9.946, allocations: 28 kB / 3.657 GB, free: 5.559 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002266/9.948, allocations: 223.5 kB / 3.658 GB, free: 5.391 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004338/9.948, allocations: 139.3 kB / 3.658 GB, free: 5.309 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002765/9.949, allocations: 69.25 kB / 3.658 GB, free: 5.254 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001374/9.95, allocations: 0.6272 MB / 3.658 GB, free: 4.672 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.44e-07/9.95, allocations: 0 / 3.658 GB, free: 4.672 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009398/9.96, allocations: 2.033 MB / 3.66 GB, free: 2.68 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 46 ($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,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,source.medium.phase,sink.medium.phase,pump.heatTransfer.states[1].phase,source1.medium.phase,sink1.medium.phase,pump1.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 17 * 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.01127/9.971, allocations: 2.294 MB / 3.663 GB, free: 0.9219 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.3197/10.29, allocations: 3.534 MB / 3.666 GB, free: 60.83 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/10.29, allocations: 1.594 kB / 3.666 GB, free: 60.83 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004477/10.3, allocations: 2.031 MB / 3.668 GB, free: 60.82 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004038/10.3, allocations: 0.5471 MB / 3.669 GB, free: 60.82 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1999/10.5, allocations: 77.81 MB / 3.745 GB, free: 56.84 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001203/10.5, allocations: 1.635 MB / 3.746 GB, free: 56.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007901/10.5, allocations: 145.2 kB / 3.746 GB, free: 56.07 MB / 490.7 MB Notification: Performance of SimCode: time 1.739e-06/10.5, allocations: 0 / 3.746 GB, free: 56.07 MB / 490.7 MB Notification: Performance of Templates: time 0.1156/10.62, allocations: 84.52 MB / 3.829 GB, free: 11.39 MB / 490.7 MB