Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadModel(Modelica): time 1.695/1.695, allocations: 171.2 MB / 187.3 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005362/0.0005365, allocations: 8 kB / 233.8 MB, free: 3.082 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0909/0.09148, allocations: 38.78 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3437/0.4353, allocations: 72.86 MB / 345.4 MB, free: 1.164 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.4356, allocations: 79.83 kB / 345.5 MB, free: 1.121 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06034/0.496, allocations: 13.8 MB / 359.3 MB, free: 5.551 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.496, allocations: 0 / 359.3 MB, free: 5.551 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.819e-05/0.4961, allocations: 16 kB / 359.3 MB, free: 5.535 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.002717/0.4988, allocations: 0.9743 MB / 360.3 MB, free: 4.547 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.4989, allocations: 12.03 kB / 360.3 MB, free: 4.535 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002581/0.4992, allocations: 83.06 kB / 360.4 MB, free: 4.453 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00103/0.5002, allocations: 450.4 kB / 360.8 MB, free: 4.039 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000214/0.5004, allocations: 102.5 kB / 360.9 MB, free: 3.938 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.5006, allocations: 42.56 kB / 361 MB, free: 3.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001879/0.5025, allocations: 0.657 MB / 361.6 MB, free: 3.34 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.219e-05/0.5025, allocations: 3.984 kB / 361.6 MB, free: 3.336 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.081e-05/0.5026, allocations: 27.31 kB / 361.6 MB, free: 3.324 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.5027, allocations: 8 kB / 361.7 MB, free: 3.316 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001897/0.5046, allocations: 492.7 kB / 362.1 MB, free: 2.961 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004943/0.5095, allocations: 1.868 MB / 364 MB, free: 1.449 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003302/0.5129, allocations: 0.7089 MB / 364.7 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.481e-05/0.513, allocations: 20.11 kB / 364.7 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.484e-05/0.5131, allocations: 47.25 kB / 364.8 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 3.396e-06/0.5131, allocations: 0 / 364.8 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.009389/0.5225, allocations: 1.619 MB / 366.4 MB, free: 15.35 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000302/0.5229, allocations: 0.5672 MB / 367 MB, free: 14.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001008/0.5239, allocations: 0.5151 MB / 367.5 MB, free: 14.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001742/0.5241, allocations: 36.02 kB / 367.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002421/0.5243, allocations: 302 kB / 367.8 MB, free: 14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002382/0.5246, allocations: 195.4 kB / 368 MB, free: 13.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.766e-05/0.5246, allocations: 7.625 kB / 368 MB, free: 13.83 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.5248, allocations: 337.8 kB / 368.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000962/0.5258, allocations: 209.6 kB / 368.5 MB, free: 13.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/0.527, allocations: 431.8 kB / 369 MB, free: 12.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.528, allocations: 279.8 kB / 369.2 MB, free: 12.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.504e-05/0.528, allocations: 0 / 369.2 MB, free: 12.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003933/0.532, allocations: 0.8278 MB / 370.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.797e-05/0.5321, allocations: 34.8 kB / 370.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.5321, allocations: 0 / 370.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00154/0.5337, allocations: 236.8 kB / 370.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001476/0.5352, allocations: 139.7 kB / 370.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01135/0.5465, allocations: 5.251 MB / 375.7 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.5477, allocations: 93.2 kB / 375.8 MB, free: 6.574 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.864e-05/0.5478, allocations: 15.12 kB / 375.8 MB, free: 6.562 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.0004892/0.5483, allocations: 197.7 kB / 376 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000185/0.5485, allocations: 67.25 kB / 376.1 MB, free: 6.336 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004042/0.5525, allocations: 0.85 MB / 376.9 MB, free: 5.691 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/0.5526, allocations: 7.938 kB / 376.9 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.5526, allocations: 0 / 376.9 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003865/0.5565, allocations: 1.103 MB / 378 MB, free: 4.629 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005482/0.562, allocations: 1.556 MB / 379.6 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.5621, allocations: 4 kB / 379.6 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001577/0.5637, allocations: 142.4 kB / 379.7 MB, free: 3.238 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001364/0.565, allocations: 189.3 kB / 379.9 MB, free: 3.074 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.289e-05/0.5652, allocations: 16.92 kB / 379.9 MB, free: 3.066 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008542/0.5737, allocations: 3.599 MB / 383.5 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.5738, allocations: 0 / 383.5 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005245/0.579, allocations: 1.15 MB / 384.7 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005217/0.5796, allocations: 208 kB / 384.9 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/0.5798, allocations: 12 kB / 384.9 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007724/0.5806, allocations: 43.97 kB / 384.9 MB, free: 14.15 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/0.5808, allocations: 40.5 kB / 385 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.093e-05/0.5808, allocations: 23.98 kB / 385 MB, free: 14.09 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007351/0.5816, allocations: 374.8 kB / 385.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5816, allocations: 0 / 385.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001118/0.5827, allocations: 215.8 kB / 385.6 MB, free: 13.52 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.0002751/0.583, allocations: 127.2 kB / 385.7 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003696/0.5867, allocations: 1.039 MB / 386.7 MB, free: 12.29 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.503e-06/0.5868, allocations: 4 kB / 386.8 MB, free: 12.29 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002033/0.5888, allocations: 0.563 MB / 387.3 MB, free: 11.7 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0013/0.5902, allocations: 162.5 kB / 387.5 MB, free: 11.54 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004289/0.5945, allocations: 1.585 MB / 389.1 MB, free: 9.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006243/0.5952, allocations: 0.8956 MB / 390 MB, free: 8.988 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003382/0.5955, allocations: 55.36 kB / 390 MB, free: 8.934 MB / 314.7 MB Notification: Performance of SimCode: time 1.452e-06/0.5955, allocations: 0 / 390 MB, free: 8.934 MB / 314.7 MB Notification: Performance of Templates: time 0.02991/0.6254, allocations: 14.27 MB / 404.3 MB, free: 10.67 MB / 330.7 MB