Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|heatCapacitor.T|pipe.T|speed.phi",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadModel(Modelica): time 2.078/2.078, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003528/0.0003529, allocations: 12 kB / 233.8 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08156/0.08194, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4102/0.4922, allocations: 72.88 MB / 345.5 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.4925, allocations: 73.59 kB / 345.6 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06568/0.5582, allocations: 13.8 MB / 359.4 MB, free: 4.949 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5583, allocations: 4 kB / 359.4 MB, free: 4.945 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.825e-05/0.5584, allocations: 12 kB / 359.4 MB, free: 4.934 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.00289/0.5613, allocations: 0.9765 MB / 360.4 MB, free: 3.945 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.5613, allocations: 11.97 kB / 360.4 MB, free: 3.934 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003228/0.5617, allocations: 83.06 kB / 360.4 MB, free: 3.852 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.5628, allocations: 449.5 kB / 360.9 MB, free: 3.438 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002126/0.563, allocations: 105.6 kB / 361 MB, free: 3.336 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/0.5632, allocations: 46.06 kB / 361 MB, free: 3.305 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001881/0.5651, allocations: 0.6526 MB / 361.7 MB, free: 2.738 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.297e-05/0.5651, allocations: 3.984 kB / 361.7 MB, free: 2.734 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.594e-05/0.5652, allocations: 27.5 kB / 361.7 MB, free: 2.723 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/0.5653, allocations: 12 kB / 361.7 MB, free: 2.711 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001954/0.5672, allocations: 484.6 kB / 362.2 MB, free: 2.363 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00489/0.5721, allocations: 1.866 MB / 364.1 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003921/0.5761, allocations: 0.7545 MB / 364.8 MB, free: 236 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.855e-05/0.5763, allocations: 20.47 kB / 364.8 MB, free: 220 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.809e-05/0.5763, allocations: 45.5 kB / 364.9 MB, free: 172 kB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 3.287e-06/0.5763, allocations: 3.938 kB / 364.9 MB, free: 168 kB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.00956/0.5859, allocations: 1.622 MB / 366.5 MB, free: 14.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003009/0.5862, allocations: 0.5645 MB / 367.1 MB, free: 14.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.5873, allocations: 0.517 MB / 367.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001766/0.5875, allocations: 38.45 kB / 367.6 MB, free: 13.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002768/0.5878, allocations: 270.2 kB / 367.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002607/0.588, allocations: 200.6 kB / 368.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.713e-05/0.5881, allocations: 14.69 kB / 368.1 MB, free: 13.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.5883, allocations: 371.9 kB / 368.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009736/0.5893, allocations: 216.7 kB / 368.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/0.5905, allocations: 423.8 kB / 369.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/0.5916, allocations: 271.7 kB / 369.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.5916, allocations: 4 kB / 369.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.004137/0.5957, allocations: 0.8707 MB / 370.2 MB, free: 11.42 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.727e-05/0.5958, allocations: 33.7 kB / 370.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.5958, allocations: 0 / 370.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001574/0.5974, allocations: 236.3 kB / 370.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/0.5989, allocations: 135.7 kB / 370.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01584/0.6148, allocations: 5.256 MB / 375.9 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001577/0.6164, allocations: 89.05 kB / 376 MB, free: 5.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.6166, allocations: 22.42 kB / 376 MB, free: 5.895 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006373/0.6172, allocations: 194.7 kB / 376.2 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002892/0.6175, allocations: 71.34 kB / 376.3 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005433/0.623, allocations: 0.8466 MB / 377.1 MB, free: 5.027 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-05/0.6231, allocations: 7.938 kB / 377.1 MB, free: 5.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.6231, allocations: 7.938 kB / 377.1 MB, free: 5.012 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005261/0.6283, allocations: 1.104 MB / 378.2 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007551/0.6359, allocations: 1.557 MB / 379.8 MB, free: 2.699 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.636, allocations: 0 / 379.8 MB, free: 2.699 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002015/0.638, allocations: 135.5 kB / 379.9 MB, free: 2.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001753/0.6398, allocations: 185.5 kB / 380.1 MB, free: 2.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.6399, allocations: 14 kB / 380.1 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01166/0.6516, allocations: 3.599 MB / 383.7 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.6517, allocations: 0 / 383.7 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006877/0.6586, allocations: 1.152 MB / 384.9 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006453/0.6593, allocations: 204.1 kB / 385.1 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002308/0.6595, allocations: 12 kB / 385.1 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.6606, allocations: 43.97 kB / 385.1 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002522/0.6609, allocations: 48.48 kB / 385.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-05/0.661, allocations: 16 kB / 385.2 MB, free: 13.37 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001025/0.662, allocations: 370.8 kB / 385.5 MB, free: 13.01 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.662, allocations: 0 / 385.5 MB, free: 13.01 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001657/0.6637, allocations: 219.7 kB / 385.8 MB, free: 12.8 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003403/0.6641, allocations: 135.2 kB / 385.9 MB, free: 12.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004746/0.6688, allocations: 1.027 MB / 386.9 MB, free: 11.58 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/0.6689, allocations: 4 kB / 386.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002564/0.6715, allocations: 0.5632 MB / 387.5 MB, free: 10.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001696/0.6732, allocations: 165.9 kB / 387.6 MB, free: 10.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005627/0.6788, allocations: 1.553 MB / 389.2 MB, free: 9.238 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008375/0.6797, allocations: 0.8995 MB / 390.1 MB, free: 8.312 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000836/0.6806, allocations: 77.03 kB / 390.2 MB, free: 8.234 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003042/0.6809, allocations: 47.42 kB / 390.2 MB, free: 8.188 MB / 314.7 MB Notification: Performance of SimCode: time 1.573e-06/0.6809, allocations: 0 / 390.2 MB, free: 8.188 MB / 314.7 MB Notification: Performance of Templates: time 0.03799/0.719, allocations: 12.33 MB / 402.5 MB, free: 11.91 MB / 330.7 MB