Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.PumpingSystem.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadModel(Modelica): time 1.783/1.783, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003667, allocations: 8 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08665/0.08705, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.831/7.918, allocations: 2.515 GB / 2.781 GB, free: 5.852 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/7.918, allocations: 87.2 kB / 2.781 GB, free: 5.809 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.996/11.91, allocations: 0.685 GB / 3.466 GB, free: 17.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.504e-06/11.91, allocations: 4 kB / 3.466 GB, free: 17.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001978/11.91, allocations: 32.06 kB / 3.466 GB, free: 17.24 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.01644/11.93, allocations: 2.771 MB / 3.469 GB, free: 15.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/11.93, allocations: 14.64 kB / 3.469 GB, free: 15.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009614/11.94, allocations: 0.5087 MB / 3.47 GB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003973/11.94, allocations: 0.9872 MB / 3.471 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002318/11.94, allocations: 182.1 kB / 3.471 GB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004039/11.95, allocations: 122.8 kB / 3.471 GB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006478/11.95, allocations: 2.014 MB / 3.473 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.668e-05/11.95, allocations: 0.6875 kB / 3.473 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000261/11.95, allocations: 57.75 kB / 3.473 GB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001412/11.95, allocations: 83.48 kB / 3.473 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005974/11.96, allocations: 1.749 MB / 3.475 GB, free: 13.29 MB / 378.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.01921/11.98, allocations: 9.332 MB / 3.484 GB, free: 6.535 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004623/11.98, allocations: 1.475 MB / 3.485 GB, free: 5.789 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5681/12.55, allocations: 63.31 MB / 3.547 GB, free: 26.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003816/12.55, allocations: 1.072 MB / 3.548 GB, free: 26.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 4.288e-06/12.55, allocations: 2.25 kB / 3.548 GB, free: 26.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=121): time 0.02643/12.58, allocations: 6.503 MB / 3.554 GB, free: 25.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002052/12.58, allocations: 301.5 kB / 3.555 GB, free: 25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002015/12.58, allocations: 1.032 MB / 3.556 GB, free: 24.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004191/12.58, allocations: 52.45 kB / 3.556 GB, free: 24.81 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005846/12.58, allocations: 0.5685 MB / 3.556 GB, free: 24.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005733/12.58, allocations: 413.8 kB / 3.557 GB, free: 24.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/12.58, allocations: 35.16 kB / 3.557 GB, free: 24.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002012/12.58, allocations: 358.4 kB / 3.557 GB, free: 24.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001911/12.59, allocations: 0.6292 MB / 3.558 GB, free: 24.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002063/12.59, allocations: 1.029 MB / 3.559 GB, free: 23.63 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00205/12.59, allocations: 0.7394 MB / 3.559 GB, free: 23.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.171e-05/12.59, allocations: 3.5 kB / 3.559 GB, free: 23.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.006605/12.6, allocations: 2.139 MB / 3.562 GB, free: 23.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003291/12.6, allocations: 430.2 kB / 3.562 GB, free: 22.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-05/12.6, allocations: 9.75 kB / 3.562 GB, free: 22.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01168/12.61, allocations: 0.997 MB / 3.563 GB, free: 22.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00246/12.61, allocations: 304.7 kB / 3.563 GB, free: 22.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005432/12.62, allocations: 4.035 MB / 3.567 GB, free: 19.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00264/12.62, allocations: 123.3 kB / 3.567 GB, free: 19.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000221/12.62, allocations: 75.66 kB / 3.567 GB, free: 19.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/12.62, allocations: 7.562 kB / 3.567 GB, free: 19.7 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005324/12.63, allocations: 1.81 MB / 3.569 GB, free: 19.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.752e-05/12.63, allocations: 10.03 kB / 3.569 GB, free: 19.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0105/12.64, allocations: 0.7469 MB / 3.57 GB, free: 19.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002475/12.64, allocations: 318.7 kB / 3.57 GB, free: 19.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009606/12.65, allocations: 6.757 MB / 3.577 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002337/12.65, allocations: 115.4 kB / 3.577 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002083/12.65, allocations: 79.58 kB / 3.577 GB, free: 14.48 MB / 410.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.001273/12.65, allocations: 461 kB / 3.577 GB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004073/12.65, allocations: 134.3 kB / 3.578 GB, free: 14.22 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009999/12.66, allocations: 4.945 MB / 3.582 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.206e-05/12.66, allocations: 48.69 kB / 3.582 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/12.66, allocations: 3.812 kB / 3.582 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.492e-05/12.66, allocations: 9.922 kB / 3.582 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01413/12.68, allocations: 6.742 MB / 3.589 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.947e-05/12.68, allocations: 0 / 3.589 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001558/12.68, allocations: 179.6 kB / 3.589 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007335/12.69, allocations: 1.366 MB / 3.591 GB, free: 13.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003799/12.69, allocations: 39.44 kB / 3.591 GB, free: 13.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005526/12.69, allocations: 4.47 MB / 3.595 GB, free: 9.957 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/12.69, allocations: 10.5 kB / 3.595 GB, free: 9.957 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/12.7, allocations: 4.859 MB / 3.6 GB, free: 9.492 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00155/12.7, allocations: 0.543 MB / 3.6 GB, free: 9.246 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000446/12.7, allocations: 28.86 kB / 3.6 GB, free: 9.246 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001883/12.71, allocations: 111.9 kB / 3.6 GB, free: 9.23 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003766/12.71, allocations: 124.7 kB / 3.6 GB, free: 9.227 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001503/12.71, allocations: 52.3 kB / 3.601 GB, free: 9.227 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001936/12.71, allocations: 0.9874 MB / 3.601 GB, free: 9.113 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.21e-07/12.71, allocations: 0 / 3.601 GB, free: 9.113 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.009746/12.72, allocations: 2.079 MB / 3.603 GB, free: 9.027 MB / 410.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.01223/12.73, allocations: 2.321 MB / 3.606 GB, free: 8.668 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009709/12.74, allocations: 3.395 MB / 3.609 GB, free: 8.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/12.74, allocations: 7.594 kB / 3.609 GB, free: 8.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00403/12.74, allocations: 1.508 MB / 3.611 GB, free: 8.223 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005435/12.75, allocations: 0.6424 MB / 3.611 GB, free: 8.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01173/12.76, allocations: 5.213 MB / 3.616 GB, free: 5.988 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001361/12.76, allocations: 1.541 MB / 3.618 GB, free: 5.234 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004043/12.77, allocations: 1.393 MB / 3.619 GB, free: 5.164 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005472/12.77, allocations: 114.6 kB / 3.619 GB, free: 5.16 MB / 410.7 MB Notification: Performance of SimCode: time 1.704e-06/12.77, allocations: 0 / 3.619 GB, free: 5.16 MB / 410.7 MB Notification: Performance of Templates: time 0.4915/13.26, allocations: 70.83 MB / 3.688 GB, free: 65.63 MB / 426.7 MB