Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystem.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) Running command: translateModel(Modelica.Fluid.Examples.PumpingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|PT1.y|pumps.medium.T|pumps.medium.p|reservoir.level|reservoir.medium.T|PumpRPMGenerator.y|controller.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadModel(Modelica): time 1.595/1.595, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003523/0.0003524, allocations: 8 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07404/0.07442, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.98/6.054, allocations: 2.515 GB / 2.781 GB, free: 110.4 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001938/6.054, allocations: 83.67 kB / 2.781 GB, free: 110.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.91/8.964, allocations: 0.685 GB / 3.466 GB, free: 8.953 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.403e-06/8.964, allocations: 0 / 3.466 GB, free: 8.953 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001495/8.964, allocations: 35.88 kB / 3.466 GB, free: 8.918 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 0.01211/8.976, allocations: 2.76 MB / 3.468 GB, free: 6.102 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/8.976, allocations: 12.02 kB / 3.468 GB, free: 6.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005816/8.982, allocations: 0.5211 MB / 3.469 GB, free: 5.566 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003486/8.986, allocations: 0.9881 MB / 3.47 GB, free: 4.531 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003153/8.986, allocations: 183.4 kB / 3.47 GB, free: 4.332 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005528/8.987, allocations: 112 kB / 3.47 GB, free: 4.223 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006824/8.993, allocations: 2.012 MB / 3.472 GB, free: 2.074 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.222e-05/8.994, allocations: 7.938 kB / 3.472 GB, free: 2.066 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002796/8.994, allocations: 55.98 kB / 3.472 GB, free: 2.012 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001476/8.994, allocations: 86.03 kB / 3.472 GB, free: 1.926 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006332/9, allocations: 1.741 MB / 3.474 GB, free: 180 kB / 394.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.2723/9.273, allocations: 9.328 MB / 3.483 GB, free: 29.32 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004603/9.277, allocations: 1.482 MB / 3.485 GB, free: 29.19 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1558/9.433, allocations: 63.31 MB / 3.546 GB, free: 22 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00376/9.437, allocations: 1.066 MB / 3.547 GB, free: 21.87 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 5.799e-06/9.437, allocations: 1.969 kB / 3.547 GB, free: 21.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=121): time 0.02532/9.462, allocations: 6.503 MB / 3.554 GB, free: 20.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002064/9.463, allocations: 302.9 kB / 3.554 GB, free: 20.05 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001732/9.464, allocations: 0.9162 MB / 3.555 GB, free: 19.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003376/9.465, allocations: 49.23 kB / 3.555 GB, free: 19.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004862/9.465, allocations: 0.5583 MB / 3.556 GB, free: 19.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005975/9.466, allocations: 416.6 kB / 3.556 GB, free: 19.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/9.466, allocations: 33.22 kB / 3.556 GB, free: 19.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002333/9.466, allocations: 365.1 kB / 3.556 GB, free: 19.08 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001684/9.468, allocations: 0.6318 MB / 3.557 GB, free: 19.08 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00198/9.47, allocations: 1.035 MB / 3.558 GB, free: 18.61 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001985/9.472, allocations: 0.7331 MB / 3.559 GB, free: 18.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.204e-05/9.472, allocations: 2.875 kB / 3.559 GB, free: 18.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.005707/9.478, allocations: 2.064 MB / 3.561 GB, free: 18.44 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002085/9.48, allocations: 4.359 MB / 3.565 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-05/9.48, allocations: 10.38 kB / 3.565 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009111/9.489, allocations: 0.9958 MB / 3.566 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001897/9.491, allocations: 294 kB / 3.566 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005109/9.496, allocations: 4.035 MB / 3.57 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002283/9.499, allocations: 131.4 kB / 3.57 GB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003515/9.499, allocations: 77.8 kB / 3.57 GB, free: 10.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/9.499, allocations: 4.469 kB / 3.57 GB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005017/9.504, allocations: 1.812 MB / 3.572 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-05/9.504, allocations: 17.88 kB / 3.572 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008031/9.512, allocations: 0.7206 MB / 3.573 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001962/9.514, allocations: 321.8 kB / 3.573 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00922/9.523, allocations: 6.766 MB / 3.58 GB, free: 21.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/9.525, allocations: 118.1 kB / 3.58 GB, free: 21.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002038/9.525, allocations: 70.09 kB / 3.58 GB, free: 21.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],$PRE.controller.y,controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,reservoir.medium.phase,pumps.medium.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (159): * Single equations (assignments): 153 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 6,2 7,1 1,2 3,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.001251/9.527, allocations: 465.6 kB / 3.58 GB, free: 21.25 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000421/9.527, allocations: 134.6 kB / 3.581 GB, free: 21.19 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009183/9.536, allocations: 4.949 MB / 3.585 GB, free: 20.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.343e-05/9.536, allocations: 47.34 kB / 3.585 GB, free: 20.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.917e-06/9.536, allocations: 0 / 3.585 GB, free: 20.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-05/9.536, allocations: 14.38 kB / 3.585 GB, free: 20.71 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0127/9.549, allocations: 6.743 MB / 3.592 GB, free: 20.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.595e-05/9.549, allocations: 0 / 3.592 GB, free: 20.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001214/9.55, allocations: 183.9 kB / 3.592 GB, free: 20.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0061/9.557, allocations: 1.37 MB / 3.594 GB, free: 20.04 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003532/9.557, allocations: 42.67 kB / 3.594 GB, free: 20.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00521/9.562, allocations: 4.448 MB / 3.598 GB, free: 16.91 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/9.562, allocations: 5.281 kB / 3.598 GB, free: 16.91 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009939/9.572, allocations: 4.92 MB / 3.603 GB, free: 16.36 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001585/9.574, allocations: 0.5521 MB / 3.603 GB, free: 16.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005116/9.574, allocations: 25.75 kB / 3.603 GB, free: 16.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001923/9.576, allocations: 108 kB / 3.603 GB, free: 16.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004104/9.577, allocations: 121.7 kB / 3.604 GB, free: 16.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001762/9.577, allocations: 45.3 kB / 3.604 GB, free: 16.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001928/9.579, allocations: 0.9875 MB / 3.605 GB, free: 15.99 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.6e-07/9.579, allocations: 0 / 3.605 GB, free: 15.99 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009218/9.588, allocations: 2.076 MB / 3.607 GB, free: 15.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.medium.T,reservoir.level,PT1.y) * Number of discrete variables: 36 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T) * Number of discrete states: 2 (controller.y,PumpRPMGenerator.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 1,1 6,2 9,2 3,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01116/9.599, allocations: 2.33 MB / 3.609 GB, free: 15.54 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008984/9.608, allocations: 3.402 MB / 3.612 GB, free: 15.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.548e-06/9.608, allocations: 3.812 kB / 3.612 GB, free: 15.12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00367/9.612, allocations: 1.483 MB / 3.614 GB, free: 15.09 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004507/9.617, allocations: 0.6461 MB / 3.614 GB, free: 15.05 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01012/9.627, allocations: 5.251 MB / 3.619 GB, free: 12.84 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001407/9.628, allocations: 1.533 MB / 3.621 GB, free: 12.09 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006389/9.629, allocations: 131.5 kB / 3.621 GB, free: 12.07 MB / 442.7 MB Notification: Performance of SimCode: time 1.878e-06/9.629, allocations: 0 / 3.621 GB, free: 12.07 MB / 442.7 MB Notification: Performance of Templates: time 0.3915/10.02, allocations: 92.11 MB / 3.711 GB, free: 71.09 MB / 442.7 MB