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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.683/1.683, allocations: 171.3 MB / 179.2 MB, free: 7.566 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.257e-05/2.263e-05, allocations: 4 kB / 222.5 MB, free: 8.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07012/0.07016, allocations: 38.76 MB / 261.3 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.366/6.436, allocations: 2.514 GB / 2.769 GB, free: 69.24 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/6.436, allocations: 75.72 kB / 2.77 GB, free: 69.24 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.113/9.55, allocations: 0.677 GB / 3.446 GB, free: 23.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.839e-06/9.55, allocations: 0 / 3.446 GB, free: 23.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001295/9.55, allocations: 41.78 kB / 3.447 GB, free: 23.11 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.009778/9.56, allocations: 2.633 MB / 3.449 GB, free: 21.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/9.56, allocations: 8.781 kB / 3.449 GB, free: 21.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005323/9.565, allocations: 0.5239 MB / 3.45 GB, free: 21.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002964/9.568, allocations: 0.9781 MB / 3.451 GB, free: 21.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000163/9.568, allocations: 144.8 kB / 3.451 GB, free: 21.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002972/9.569, allocations: 71.75 kB / 3.451 GB, free: 21.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003343/9.572, allocations: 1.405 MB / 3.452 GB, free: 21.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003477/9.576, allocations: 1.621 MB / 3.454 GB, free: 20.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.794e-05/9.576, allocations: 6.031 kB / 3.454 GB, free: 20.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002044/9.576, allocations: 3.656 kB / 3.454 GB, free: 20.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001335/9.576, allocations: 79.97 kB / 3.454 GB, free: 20.98 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.5602/10.14, allocations: 133.5 MB / 3.584 GB, free: 79.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002342/10.14, allocations: 1.073 MB / 3.585 GB, free: 79.88 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001171/10.14, allocations: 0.5871 MB / 3.586 GB, free: 79.87 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.144/10.28, allocations: 63.54 MB / 3.648 GB, free: 40.45 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001637/10.29, allocations: 0.7296 MB / 3.649 GB, free: 40.37 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 5.317e-06/10.29, allocations: 0 / 3.649 GB, free: 40.37 MB / 442.7 MB Notification: Performance of matching and sorting (n=107): time 0.02787/10.31, allocations: 5.773 MB / 3.654 GB, free: 39.86 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.067e-05/10.31, allocations: 207.2 kB / 3.654 GB, free: 39.64 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/10.31, allocations: 0.713 MB / 3.655 GB, free: 39.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002571/10.32, allocations: 25.7 kB / 3.655 GB, free: 39.46 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000461/10.32, allocations: 0.639 MB / 3.656 GB, free: 39.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003987/10.32, allocations: 354 kB / 3.656 GB, free: 38.96 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/10.32, allocations: 0 / 3.656 GB, free: 38.96 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/10.32, allocations: 366.3 kB / 3.656 GB, free: 38.65 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/10.32, allocations: 0.5873 MB / 3.657 GB, free: 38.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/10.32, allocations: 0.9762 MB / 3.658 GB, free: 38.19 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009375/10.33, allocations: 1.702 MB / 3.66 GB, free: 38.14 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.968e-05/10.33, allocations: 3.969 kB / 3.66 GB, free: 38.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.01367/10.34, allocations: 2.961 MB / 3.663 GB, free: 37.96 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008772/10.34, allocations: 4.361 MB / 3.667 GB, free: 33.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.77e-05/10.34, allocations: 11.19 kB / 3.667 GB, free: 33.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002294/10.35, allocations: 0.71 MB / 3.668 GB, free: 33.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001742/10.35, allocations: 288.7 kB / 3.668 GB, free: 33.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008704/10.36, allocations: 5.91 MB / 3.674 GB, free: 28.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002081/10.36, allocations: 105.4 kB / 3.674 GB, free: 28.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002405/10.36, allocations: 75.33 kB / 3.674 GB, free: 28.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/10.36, allocations: 6.672 kB / 3.674 GB, free: 28.89 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01073/10.37, allocations: 2.429 MB / 3.676 GB, free: 28.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.072e-05/10.37, allocations: 12.59 kB / 3.676 GB, free: 28.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/10.37, allocations: 0.4894 MB / 3.677 GB, free: 28.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001727/10.37, allocations: 304.7 kB / 3.677 GB, free: 28.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009215/10.38, allocations: 7.949 MB / 3.685 GB, free: 22.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/10.38, allocations: 89.92 kB / 3.685 GB, free: 22.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001816/10.38, allocations: 67.3 kB / 3.685 GB, free: 22.57 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 () * 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.0005242/10.38, allocations: 160.8 kB / 3.685 GB, free: 22.46 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003517/10.38, allocations: 117.3 kB / 3.685 GB, free: 22.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009725/10.39, allocations: 4.116 MB / 3.689 GB, free: 22.02 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.673e-05/10.39, allocations: 43.84 kB / 3.689 GB, free: 22.02 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/10.39, allocations: 0 / 3.689 GB, free: 22.02 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.246e-05/10.39, allocations: 6.938 kB / 3.689 GB, free: 22.02 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01245/10.41, allocations: 5.705 MB / 3.695 GB, free: 21.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/10.41, allocations: 1.641 kB / 3.695 GB, free: 21.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/10.41, allocations: 152.4 kB / 3.695 GB, free: 21.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00275/10.41, allocations: 1.162 MB / 3.696 GB, free: 21.44 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002578/10.41, allocations: 16.48 kB / 3.696 GB, free: 21.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006293/10.42, allocations: 4.896 MB / 3.701 GB, free: 18.29 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.079e-06/10.42, allocations: 0 / 3.701 GB, free: 18.29 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01081/10.43, allocations: 4.619 MB / 3.705 GB, free: 17.86 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001104/10.43, allocations: 391.3 kB / 3.706 GB, free: 17.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000317/10.43, allocations: 3.906 kB / 3.706 GB, free: 17.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00155/10.43, allocations: 82.88 kB / 3.706 GB, free: 17.65 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003299/10.43, allocations: 111.4 kB / 3.706 GB, free: 17.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001465/10.43, allocations: 47.25 kB / 3.706 GB, free: 17.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008536/10.43, allocations: 0.5033 MB / 3.706 GB, free: 17.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.622e-06/10.43, allocations: 0 / 3.706 GB, free: 17.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008346/10.44, allocations: 1.939 MB / 3.708 GB, free: 17.46 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.medium.T,reservoir.level,PT1.y) * Number of discrete variables: 32 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.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 (97): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.01055/10.45, allocations: 2.477 MB / 3.711 GB, free: 17.09 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007212/10.46, allocations: 3.282 MB / 3.714 GB, free: 16.53 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.341e-06/10.46, allocations: 0 / 3.714 GB, free: 16.53 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002824/10.46, allocations: 1.291 MB / 3.715 GB, free: 16.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002944/10.46, allocations: 467.2 kB / 3.716 GB, free: 16.48 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007048/10.47, allocations: 3.034 MB / 3.719 GB, free: 15.15 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/10.47, allocations: 1.416 MB / 3.72 GB, free: 13.99 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005917/10.47, allocations: 117.5 kB / 3.72 GB, free: 13.89 MB / 442.7 MB Notification: Performance of SimCode: time 1.899e-06/10.47, allocations: 0 / 3.72 GB, free: 13.89 MB / 442.7 MB Notification: Performance of Templates: time 0.3736/10.85, allocations: 86.87 MB / 3.805 GB, free: 74.73 MB / 442.7 MB