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.578/1.578, allocations: 171.2 MB / 184.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.648e-05/2.669e-05, allocations: 4 kB / 228.8 MB, free: 15.44 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2108/0.2109, allocations: 38.76 MB / 267.6 MB, free: 9.328 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.918/6.129, allocations: 2.515 GB / 2.776 GB, free: 87.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004816/6.13, allocations: 78.02 kB / 2.776 GB, free: 87.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.95/9.08, allocations: 0.6831 GB / 3.459 GB, free: 16.13 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.784e-06/9.08, allocations: 3.938 kB / 3.459 GB, free: 16.13 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001312/9.08, allocations: 38.58 kB / 3.459 GB, free: 16.12 MB / 378.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.01067/9.091, allocations: 2.633 MB / 3.462 GB, free: 14.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/9.091, allocations: 14.62 kB / 3.462 GB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005908/9.097, allocations: 0.5274 MB / 3.463 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003208/9.1, allocations: 0.9692 MB / 3.464 GB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002319/9.1, allocations: 192.2 kB / 3.464 GB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004804/9.101, allocations: 112.7 kB / 3.464 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005908/9.106, allocations: 2.044 MB / 3.466 GB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.878e-05/9.107, allocations: 3.594 kB / 3.466 GB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002501/9.107, allocations: 55.42 kB / 3.466 GB, free: 12.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001127/9.107, allocations: 83.11 kB / 3.466 GB, free: 12.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005117/9.112, allocations: 1.757 MB / 3.468 GB, free: 11.25 MB / 378.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.01572/9.128, allocations: 9.335 MB / 3.477 GB, free: 2.562 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003872/9.132, allocations: 1.515 MB / 3.478 GB, free: 1.207 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/9.133, allocations: 0.6662 MB / 3.479 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4061/9.539, allocations: 63.54 MB / 3.541 GB, free: 24.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003514/9.543, allocations: 1.114 MB / 3.542 GB, free: 23.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 5.44e-06/9.543, allocations: 1.688 kB / 3.542 GB, free: 23.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=121): time 0.0199/9.563, allocations: 5.516 MB / 3.547 GB, free: 22.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001953/9.563, allocations: 303.6 kB / 3.548 GB, free: 22.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001697/9.565, allocations: 0.9016 MB / 3.549 GB, free: 22.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003233/9.565, allocations: 51.8 kB / 3.549 GB, free: 22.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004801/9.566, allocations: 0.5621 MB / 3.549 GB, free: 22.15 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005569/9.566, allocations: 411.6 kB / 3.55 GB, free: 21.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/9.566, allocations: 28.31 kB / 3.55 GB, free: 21.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002175/9.567, allocations: 367.4 kB / 3.55 GB, free: 21.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001356/9.568, allocations: 0.6045 MB / 3.551 GB, free: 21.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001639/9.57, allocations: 1.006 MB / 3.552 GB, free: 21.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001596/9.571, allocations: 0.7153 MB / 3.552 GB, free: 21.15 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-05/9.571, allocations: 7.375 kB / 3.552 GB, free: 21.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.005349/9.577, allocations: 2.051 MB / 3.554 GB, free: 20.99 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002031/9.579, allocations: 4.36 MB / 3.559 GB, free: 16.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.46e-05/9.579, allocations: 10.56 kB / 3.559 GB, free: 16.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009136/9.588, allocations: 1.024 MB / 3.56 GB, free: 16.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001746/9.59, allocations: 282.6 kB / 3.56 GB, free: 16.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006361/9.596, allocations: 5.451 MB / 3.565 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002139/9.598, allocations: 130.3 kB / 3.565 GB, free: 11.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000325/9.599, allocations: 71.47 kB / 3.565 GB, free: 11.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/9.599, allocations: 6.594 kB / 3.565 GB, free: 11.87 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004662/9.603, allocations: 1.818 MB / 3.567 GB, free: 11.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.131e-05/9.603, allocations: 9.062 kB / 3.567 GB, free: 11.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007752/9.611, allocations: 0.7598 MB / 3.568 GB, free: 11.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001832/9.613, allocations: 313.4 kB / 3.568 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009983/9.623, allocations: 8.086 MB / 3.576 GB, free: 21.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001621/9.625, allocations: 125.1 kB / 3.576 GB, free: 21.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000223/9.625, allocations: 71.31 kB / 3.576 GB, free: 21.3 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 150 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {2 1,1 6,2 7,1 1,2 3,1 2,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005964/9.626, allocations: 210 kB / 3.576 GB, free: 21.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004134/9.626, allocations: 137.9 kB / 3.577 GB, free: 21.12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008355/9.634, allocations: 4.882 MB / 3.581 GB, free: 20.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-05/9.635, allocations: 45.34 kB / 3.581 GB, free: 20.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.209e-06/9.635, allocations: 7.188 kB / 3.581 GB, free: 20.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-05/9.635, allocations: 7.422 kB / 3.581 GB, free: 20.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01173/9.646, allocations: 6.682 MB / 3.588 GB, free: 20.06 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.796e-05/9.646, allocations: 2.219 kB / 3.588 GB, free: 20.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/9.648, allocations: 173.6 kB / 3.588 GB, free: 20.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006076/9.654, allocations: 1.482 MB / 3.59 GB, free: 19.97 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003352/9.654, allocations: 35.27 kB / 3.59 GB, free: 19.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004969/9.659, allocations: 4.465 MB / 3.594 GB, free: 16.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/9.659, allocations: 4.266 kB / 3.594 GB, free: 16.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008553/9.668, allocations: 4.841 MB / 3.599 GB, free: 16.29 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001505/9.669, allocations: 0.5535 MB / 3.599 GB, free: 16.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005117/9.67, allocations: 23.19 kB / 3.599 GB, free: 16.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001718/9.671, allocations: 110.1 kB / 3.599 GB, free: 16.03 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003804/9.672, allocations: 122.4 kB / 3.599 GB, free: 16.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001693/9.672, allocations: 47.62 kB / 3.599 GB, free: 16.02 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001828/9.674, allocations: 0.9687 MB / 3.6 GB, free: 15.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.04e-07/9.674, allocations: 1.859 kB / 3.6 GB, free: 15.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009305/9.683, allocations: 2.075 MB / 3.602 GB, free: 15.82 MB / 426.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) * 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.01061/9.694, allocations: 2.322 MB / 3.605 GB, free: 15.46 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00839/9.702, allocations: 3.538 MB / 3.608 GB, free: 14.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/9.702, allocations: 0.8438 kB / 3.608 GB, free: 14.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003489/9.706, allocations: 1.462 MB / 3.61 GB, free: 14.81 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004418/9.71, allocations: 0.6433 MB / 3.61 GB, free: 14.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008475/9.719, allocations: 3.547 MB / 3.614 GB, free: 13.88 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001366/9.72, allocations: 1.536 MB / 3.615 GB, free: 13.13 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006271/9.721, allocations: 130.4 kB / 3.615 GB, free: 13.12 MB / 426.7 MB Notification: Performance of SimCode: time 1.891e-06/9.721, allocations: 1.969 kB / 3.615 GB, free: 13.12 MB / 426.7 MB Notification: Performance of Templates: time 0.3885/10.11, allocations: 95.34 MB / 3.708 GB, free: 65.14 MB / 426.7 MB