Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.PumpingSystem.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadModel(Modelica): time 2.203/2.203, allocations: 194.9 MB / 211.7 MB, free: 2.859 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005296/0.0005297, allocations: 8 kB / 264.5 MB, free: 12.89 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0998/0.1004, allocations: 44.5 MB / 309 MB, free: 336 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.33/8.43, allocations: 2.625 GB / 2.927 GB, free: 75.1 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003027/8.431, allocations: 84.84 kB / 2.927 GB, free: 75.06 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.924/12.36, allocations: 0.7028 GB / 3.629 GB, free: 9.191 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.405e-06/12.36, allocations: 0 / 3.629 GB, free: 9.191 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001325/12.36, allocations: 32 kB / 3.629 GB, free: 9.16 MB / 426.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.01316/12.37, allocations: 2.856 MB / 3.632 GB, free: 6.27 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/12.37, allocations: 11.97 kB / 3.632 GB, free: 6.258 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006402/12.37, allocations: 0.5601 MB / 3.633 GB, free: 5.699 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003712/12.38, allocations: 0.9775 MB / 3.634 GB, free: 4.695 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002112/12.38, allocations: 187.1 kB / 3.634 GB, free: 4.496 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003574/12.38, allocations: 115.9 kB / 3.634 GB, free: 4.387 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006762/12.39, allocations: 2.019 MB / 3.636 GB, free: 2.238 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.118e-05/12.39, allocations: 3.906 kB / 3.636 GB, free: 2.234 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002563/12.39, allocations: 51.91 kB / 3.636 GB, free: 2.188 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001646/12.39, allocations: 82.08 kB / 3.636 GB, free: 2.105 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006069/12.39, allocations: 1.753 MB / 3.638 GB, free: 352 kB / 426.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.0286/12.42, allocations: 9.334 MB / 3.647 GB, free: 6.406 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009018/12.43, allocations: 1.467 MB / 3.648 GB, free: 4.895 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5984/13.03, allocations: 63.39 MB / 3.71 GB, free: 22.05 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00402/13.03, allocations: 1.072 MB / 3.711 GB, free: 21.93 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 4.819e-06/13.03, allocations: 0 / 3.711 GB, free: 21.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=121): time 0.02939/13.06, allocations: 6.506 MB / 3.718 GB, free: 20.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000247/13.06, allocations: 304.6 kB / 3.718 GB, free: 20.23 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002156/13.06, allocations: 1.031 MB / 3.719 GB, free: 20.07 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004377/13.07, allocations: 55.36 kB / 3.719 GB, free: 20.04 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005929/13.07, allocations: 0.5592 MB / 3.72 GB, free: 19.83 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007493/13.07, allocations: 424.6 kB / 3.72 GB, free: 19.62 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/13.07, allocations: 26.41 kB / 3.72 GB, free: 19.62 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002442/13.07, allocations: 363.3 kB / 3.72 GB, free: 19.32 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001984/13.07, allocations: 0.6304 MB / 3.721 GB, free: 19.32 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002412/13.07, allocations: 1.033 MB / 3.722 GB, free: 18.86 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002276/13.07, allocations: 0.7395 MB / 3.723 GB, free: 18.83 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/13.07, allocations: 3.344 kB / 3.723 GB, free: 18.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.007089/13.08, allocations: 2.142 MB / 3.725 GB, free: 18.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002656/13.08, allocations: 418.4 kB / 3.725 GB, free: 18.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.15e-05/13.08, allocations: 14.16 kB / 3.725 GB, free: 18.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01216/13.09, allocations: 0.9943 MB / 3.726 GB, free: 18.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002468/13.1, allocations: 302.6 kB / 3.726 GB, free: 18.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005623/13.1, allocations: 4.039 MB / 3.73 GB, free: 14.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002768/13.1, allocations: 117.5 kB / 3.73 GB, free: 14.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003854/13.11, allocations: 75.73 kB / 3.731 GB, free: 14.95 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/13.11, allocations: 7.969 kB / 3.731 GB, free: 14.94 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005755/13.11, allocations: 1.812 MB / 3.732 GB, free: 14.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.982e-05/13.11, allocations: 11.53 kB / 3.732 GB, free: 14.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01103/13.12, allocations: 0.7514 MB / 3.733 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00253/13.12, allocations: 317.4 kB / 3.733 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/13.13, allocations: 6.755 MB / 3.74 GB, free: 25.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002389/13.14, allocations: 118.4 kB / 3.74 GB, free: 25.72 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002699/13.14, allocations: 70.23 kB / 3.74 GB, free: 25.72 MB / 474.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.001364/13.14, allocations: 462.8 kB / 3.741 GB, free: 25.53 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004528/13.14, allocations: 133.8 kB / 3.741 GB, free: 25.46 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0118/13.15, allocations: 4.947 MB / 3.746 GB, free: 25 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-05/13.15, allocations: 49 kB / 3.746 GB, free: 25 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/13.15, allocations: 0 / 3.746 GB, free: 25 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-05/13.15, allocations: 11 kB / 3.746 GB, free: 25 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01494/13.17, allocations: 6.74 MB / 3.752 GB, free: 24.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.751e-05/13.17, allocations: 4 kB / 3.752 GB, free: 24.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00162/13.17, allocations: 173.7 kB / 3.752 GB, free: 24.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007604/13.18, allocations: 1.363 MB / 3.754 GB, free: 24.37 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000433/13.18, allocations: 36.7 kB / 3.754 GB, free: 24.37 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005854/13.18, allocations: 4.47 MB / 3.758 GB, free: 21.24 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/13.18, allocations: 10.03 kB / 3.758 GB, free: 21.23 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01151/13.19, allocations: 4.863 MB / 3.763 GB, free: 20.78 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001808/13.2, allocations: 0.5497 MB / 3.763 GB, free: 20.53 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004836/13.2, allocations: 34.7 kB / 3.763 GB, free: 20.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001945/13.2, allocations: 101.5 kB / 3.764 GB, free: 20.51 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003953/13.2, allocations: 119.2 kB / 3.764 GB, free: 20.51 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000176/13.2, allocations: 55.25 kB / 3.764 GB, free: 20.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002009/13.2, allocations: 0.9838 MB / 3.765 GB, free: 20.39 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.573e-06/13.2, allocations: 0 / 3.765 GB, free: 20.39 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01127/13.21, allocations: 2.092 MB / 3.767 GB, free: 20.31 MB / 474.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.01404/13.23, allocations: 2.336 MB / 3.769 GB, free: 19.95 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01049/13.24, allocations: 3.389 MB / 3.772 GB, free: 19.53 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/13.24, allocations: 0 / 3.772 GB, free: 19.53 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004501/13.24, allocations: 1.518 MB / 3.774 GB, free: 19.51 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005735/13.25, allocations: 0.6499 MB / 3.774 GB, free: 19.46 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01228/13.26, allocations: 5.2 MB / 3.779 GB, free: 17.27 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001543/13.26, allocations: 1.539 MB / 3.781 GB, free: 16.52 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004128/13.27, allocations: 1.396 MB / 3.782 GB, free: 16.45 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005612/13.27, allocations: 120.4 kB / 3.782 GB, free: 16.44 MB / 474.7 MB Notification: Performance of SimCode: time 1.653e-06/13.27, allocations: 0 / 3.782 GB, free: 16.44 MB / 474.7 MB Notification: Performance of Templates: time 0.5575/13.82, allocations: 70.94 MB / 3.852 GB, free: 69.32 MB / 474.7 MB