Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.741/1.741, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005608/0.000561, allocations: 8 kB / 233.2 MB, free: 3.02 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08123/0.08182, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3265/0.4084, allocations: 72.88 MB / 344.9 MB, free: 1.098 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003781/0.4088, allocations: 76.08 kB / 345 MB, free: 1.059 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06067/0.4695, allocations: 13.79 MB / 358.8 MB, free: 5.484 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.83e-06/0.4696, allocations: 4 kB / 358.8 MB, free: 5.48 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.572e-05/0.4696, allocations: 12 kB / 358.8 MB, free: 5.469 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.002264/0.4719, allocations: 0.9788 MB / 359.7 MB, free: 4.48 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.472, allocations: 16.02 kB / 359.8 MB, free: 4.465 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002207/0.4722, allocations: 83.06 kB / 359.8 MB, free: 4.383 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009139/0.4731, allocations: 442.2 kB / 360.3 MB, free: 3.969 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/0.4734, allocations: 106.5 kB / 360.4 MB, free: 3.867 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.4735, allocations: 42.25 kB / 360.4 MB, free: 3.84 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/0.4751, allocations: 0.6577 MB / 361.1 MB, free: 3.27 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.761e-05/0.4751, allocations: 0 / 361.1 MB, free: 3.27 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.489e-05/0.4752, allocations: 27.94 kB / 361.1 MB, free: 3.258 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.047e-05/0.4752, allocations: 11.98 kB / 361.1 MB, free: 3.246 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/0.4767, allocations: 486.2 kB / 361.6 MB, free: 2.895 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004268/0.481, allocations: 1.872 MB / 363.5 MB, free: 1.375 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002773/0.4838, allocations: 0.7577 MB / 364.2 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.393e-05/0.484, allocations: 9.297 kB / 364.2 MB, free: 0.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.726e-05/0.484, allocations: 50.19 kB / 364.3 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 3.757e-06/0.4841, allocations: 3.938 kB / 364.3 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.006678/0.4907, allocations: 1.619 MB / 365.9 MB, free: 15.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000363/0.4911, allocations: 0.5682 MB / 366.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008433/0.492, allocations: 463.1 kB / 366.9 MB, free: 14.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001191/0.4921, allocations: 39.02 kB / 367 MB, free: 14.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000242/0.4924, allocations: 298.8 kB / 367.3 MB, free: 13.94 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002391/0.4927, allocations: 203.2 kB / 367.4 MB, free: 13.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.23e-05/0.4927, allocations: 9.188 kB / 367.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.4929, allocations: 326.6 kB / 367.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007391/0.4937, allocations: 216.6 kB / 368 MB, free: 13.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009745/0.4946, allocations: 423.9 kB / 368.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008197/0.4955, allocations: 283.7 kB / 368.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.955e-06/0.4955, allocations: 0 / 368.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003067/0.4986, allocations: 0.8279 MB / 369.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.974e-05/0.4987, allocations: 29.7 kB / 369.5 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.4987, allocations: 4 kB / 369.5 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/0.4999, allocations: 236.9 kB / 369.8 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.501, allocations: 135.5 kB / 369.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009768/0.5108, allocations: 5.257 MB / 375.2 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008481/0.5117, allocations: 88.83 kB / 375.2 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.072e-05/0.5118, allocations: 22.81 kB / 375.3 MB, free: 6.5 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.0004541/0.5122, allocations: 195.9 kB / 375.5 MB, free: 6.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/0.5124, allocations: 71.19 kB / 375.5 MB, free: 6.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003044/0.5155, allocations: 0.8385 MB / 376.4 MB, free: 5.633 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.5155, allocations: 8 kB / 376.4 MB, free: 5.625 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.599e-06/0.5156, allocations: 7.984 kB / 376.4 MB, free: 5.617 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002973/0.5185, allocations: 1.104 MB / 377.5 MB, free: 4.559 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004424/0.523, allocations: 1.559 MB / 379 MB, free: 3.305 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.5231, allocations: 4 kB / 379.1 MB, free: 3.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.5241, allocations: 139.3 kB / 379.2 MB, free: 3.168 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001063/0.5252, allocations: 181.9 kB / 379.4 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.519e-05/0.5253, allocations: 12.69 kB / 379.4 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007215/0.5325, allocations: 3.602 MB / 383 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.5325, allocations: 320 / 383 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003986/0.5365, allocations: 1.148 MB / 384.1 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005037/0.5371, allocations: 204 kB / 384.3 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.5372, allocations: 23.94 kB / 384.4 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005512/0.5378, allocations: 43.97 kB / 384.4 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.538, allocations: 44.48 kB / 384.4 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.128e-05/0.538, allocations: 16 kB / 384.5 MB, free: 14.01 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006946/0.5387, allocations: 370.8 kB / 384.8 MB, free: 13.65 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.06e-07/0.5388, allocations: 0 / 384.8 MB, free: 13.65 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001051/0.5398, allocations: 219.8 kB / 385 MB, free: 13.44 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.0002621/0.5401, allocations: 135.1 kB / 385.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002879/0.543, allocations: 1.035 MB / 386.2 MB, free: 12.21 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.037e-06/0.543, allocations: 0 / 386.2 MB, free: 12.21 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001527/0.5446, allocations: 0.563 MB / 386.8 MB, free: 11.62 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.5457, allocations: 171.6 kB / 386.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003534/0.5492, allocations: 1.573 MB / 388.5 MB, free: 9.84 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006795/0.5499, allocations: 0.8956 MB / 389.4 MB, free: 8.918 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002669/0.5502, allocations: 59.42 kB / 389.5 MB, free: 8.859 MB / 314.7 MB Notification: Performance of SimCode: time 1.941e-06/0.5502, allocations: 4 kB / 389.5 MB, free: 8.855 MB / 314.7 MB Notification: Performance of Templates: time 0.02431/0.5745, allocations: 14.28 MB / 403.7 MB, free: 10.59 MB / 330.7 MB