Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadModel(Modelica): time 1.97/1.97, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005715/0.0005714, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09677/0.09738, allocations: 44.5 MB / 308.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3307/0.4281, allocations: 78.2 MB / 386.6 MB, free: 18.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.4284, allocations: 76.55 kB / 386.7 MB, free: 18.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05106/0.4795, allocations: 13.83 MB / 400.6 MB, free: 17.37 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4795, allocations: 0 / 400.6 MB, free: 17.37 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.298e-05/0.4796, allocations: 11.72 kB / 400.6 MB, free: 17.37 MB / 314.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.001847/0.4814, allocations: 0.9819 MB / 401.5 MB, free: 16.71 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.4815, allocations: 15.38 kB / 401.6 MB, free: 16.7 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002428/0.4817, allocations: 80.88 kB / 401.6 MB, free: 16.67 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008612/0.4826, allocations: 458.2 kB / 402.1 MB, free: 16.39 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001567/0.4828, allocations: 95.31 kB / 402.2 MB, free: 16.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.4829, allocations: 45.91 kB / 402.2 MB, free: 16.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/0.4843, allocations: 0.6529 MB / 402.9 MB, free: 16.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.4844, allocations: 0 / 402.9 MB, free: 16.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.295e-05/0.4844, allocations: 22.53 kB / 402.9 MB, free: 16.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.4845, allocations: 15.62 kB / 402.9 MB, free: 16.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.4859, allocations: 487 kB / 403.4 MB, free: 16.07 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003823/0.4898, allocations: 1.877 MB / 405.3 MB, free: 15.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002542/0.4924, allocations: 0.7613 MB / 406 MB, free: 14.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.171e-05/0.4925, allocations: 16.12 kB / 406 MB, free: 14.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.4925, allocations: 46.06 kB / 406.1 MB, free: 14.9 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 3.752e-06/0.4925, allocations: 0 / 406.1 MB, free: 14.9 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.006495/0.499, allocations: 1.618 MB / 407.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.4992, allocations: 0.5674 MB / 408.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007292/0.4999, allocations: 469 kB / 408.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.624e-05/0.5, allocations: 36.89 kB / 408.8 MB, free: 13.31 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.5002, allocations: 305 kB / 409.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/0.5004, allocations: 196.7 kB / 409.3 MB, free: 12.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.14e-05/0.5004, allocations: 6.938 kB / 409.3 MB, free: 12.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.464e-05/0.5005, allocations: 336.5 kB / 409.6 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007185/0.5012, allocations: 211.5 kB / 409.8 MB, free: 12.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008433/0.5021, allocations: 430.8 kB / 410.2 MB, free: 12.35 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008096/0.5029, allocations: 272.8 kB / 410.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.242e-06/0.503, allocations: 0 / 410.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002952/0.5059, allocations: 0.8333 MB / 411.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.132e-05/0.506, allocations: 29.58 kB / 411.4 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.506, allocations: 3.969 kB / 411.4 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.5071, allocations: 233.5 kB / 411.6 MB, free: 11.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009322/0.5081, allocations: 135.9 kB / 411.7 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008328/0.5164, allocations: 5.256 MB / 417 MB, free: 7.656 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009165/0.5174, allocations: 86.12 kB / 417.1 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.445e-05/0.5175, allocations: 22.69 kB / 417.1 MB, free: 7.617 MB / 314.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.0003866/0.5179, allocations: 192.5 kB / 417.3 MB, free: 7.492 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001469/0.518, allocations: 70.08 kB / 417.3 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00312/0.5212, allocations: 0.8448 MB / 418.2 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.5212, allocations: 3.875 kB / 418.2 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.214e-06/0.5212, allocations: 4.125 kB / 418.2 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002834/0.5241, allocations: 1.096 MB / 419.3 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004561/0.5287, allocations: 1.568 MB / 420.9 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.553e-06/0.5287, allocations: 3.906 kB / 420.9 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.5297, allocations: 136.5 kB / 421 MB, free: 5.785 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001064/0.5308, allocations: 188.8 kB / 421.2 MB, free: 5.719 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.779e-05/0.5309, allocations: 11.55 kB / 421.2 MB, free: 5.715 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006987/0.5379, allocations: 3.601 MB / 424.8 MB, free: 18.84 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.099e-06/0.538, allocations: 3.938 kB / 424.8 MB, free: 18.83 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003942/0.5419, allocations: 1.157 MB / 425.9 MB, free: 18.47 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004688/0.5424, allocations: 205.8 kB / 426.1 MB, free: 18.31 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.5426, allocations: 10.78 kB / 426.2 MB, free: 18.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000552/0.5431, allocations: 46.16 kB / 426.2 MB, free: 18.3 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.5433, allocations: 39.38 kB / 426.2 MB, free: 18.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.946e-05/0.5434, allocations: 22.98 kB / 426.3 MB, free: 18.27 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005981/0.544, allocations: 373.5 kB / 426.6 MB, free: 18.14 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.8e-07/0.544, allocations: 0 / 426.6 MB, free: 18.14 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00093/0.5449, allocations: 226.5 kB / 426.9 MB, free: 18.12 MB / 330.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.000247/0.5452, allocations: 121.1 kB / 427 MB, free: 18.03 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002565/0.5478, allocations: 1.034 MB / 428 MB, free: 17.49 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.476e-06/0.5478, allocations: 7.828 kB / 428 MB, free: 17.48 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001376/0.5492, allocations: 0.558 MB / 428.6 MB, free: 17.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.5503, allocations: 167.7 kB / 428.7 MB, free: 17.14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002769/0.5531, allocations: 1.553 MB / 430.3 MB, free: 16.14 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006173/0.5537, allocations: 0.8959 MB / 431.2 MB, free: 15.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002783/0.554, allocations: 54.17 kB / 431.2 MB, free: 15.33 MB / 330.7 MB Notification: Performance of SimCode: time 1.639e-06/0.554, allocations: 0 / 431.2 MB, free: 15.33 MB / 330.7 MB Notification: Performance of Templates: time 0.0217/0.5757, allocations: 14.32 MB / 445.6 MB, free: 6.82 MB / 330.7 MB