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.TwoMass.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.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadModel(Modelica): time 1.883/1.883, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004848/0.000485, allocations: 12 kB / 233.9 MB, free: 2.379 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0836/0.08412, allocations: 38.76 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3697/0.4539, allocations: 71.92 MB / 344.5 MB, free: 1.504 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.4543, allocations: 79.56 kB / 344.6 MB, free: 1.465 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0706/0.5249, allocations: 15.67 MB / 360.3 MB, free: 4.262 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5249, allocations: 0 / 360.3 MB, free: 4.262 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.833e-05/0.525, allocations: 20 kB / 360.3 MB, free: 4.242 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.003395/0.5284, allocations: 1.164 MB / 361.5 MB, free: 3.07 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.5285, allocations: 8.031 kB / 361.5 MB, free: 3.062 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000313/0.5288, allocations: 98.97 kB / 361.6 MB, free: 2.965 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/0.5301, allocations: 0.5204 MB / 362.1 MB, free: 2.492 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003078/0.5304, allocations: 151 kB / 362.2 MB, free: 2.344 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001664/0.5306, allocations: 53.5 kB / 362.3 MB, free: 2.309 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002387/0.533, allocations: 0.8465 MB / 363.1 MB, free: 1.57 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.902e-05/0.5331, allocations: 0 / 363.1 MB, free: 1.57 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.5332, allocations: 30.19 kB / 363.2 MB, free: 1.559 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.044e-05/0.5332, allocations: 12 kB / 363.2 MB, free: 1.547 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002532/0.5358, allocations: 0.6435 MB / 363.8 MB, free: 1.074 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005318/0.5411, allocations: 2.052 MB / 365.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002885/0.5441, allocations: 1.07 MB / 366.9 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001114/0.5442, allocations: 12.61 kB / 367 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.439e-05/0.5443, allocations: 50.22 kB / 367 MB, free: 14.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=74): time 3.266e-06/0.5443, allocations: 0 / 367 MB, free: 14.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=74): time 0.009543/0.5538, allocations: 1.988 MB / 369 MB, free: 12.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004627/0.5543, allocations: 0.8276 MB / 369.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001192/0.5555, allocations: 0.5991 MB / 370.4 MB, free: 11.24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001864/0.5558, allocations: 45.2 kB / 370.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003266/0.5561, allocations: 321.3 kB / 370.8 MB, free: 11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003343/0.5564, allocations: 254.9 kB / 371 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.193e-05/0.5565, allocations: 16.38 kB / 371 MB, free: 10.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002253/0.5568, allocations: 388.8 kB / 371.4 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/0.558, allocations: 293.5 kB / 371.7 MB, free: 10.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001567/0.5596, allocations: 0.5642 MB / 372.3 MB, free: 9.684 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001318/0.5609, allocations: 422.9 kB / 372.7 MB, free: 9.375 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.5609, allocations: 0 / 372.7 MB, free: 9.375 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.004793/0.5657, allocations: 1.175 MB / 373.9 MB, free: 8.402 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.611e-05/0.5659, allocations: 84.23 kB / 373.9 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.5659, allocations: 0 / 373.9 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.5671, allocations: 262.7 kB / 374.2 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.5684, allocations: 139.3 kB / 374.3 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01729/0.5857, allocations: 6.581 MB / 380.9 MB, free: 1.461 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002518/0.5883, allocations: 116 kB / 381 MB, free: 1.359 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/0.5884, allocations: 26.3 kB / 381.1 MB, free: 1.34 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006556/0.5891, allocations: 221.4 kB / 381.3 MB, free: 1.172 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.5894, allocations: 87.02 kB / 381.4 MB, free: 1.086 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002421/0.5896, allocations: 84.36 kB / 381.4 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-05/0.5897, allocations: 8 kB / 381.5 MB, free: 1.039 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.5897, allocations: 0 / 381.5 MB, free: 1.039 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004504/0.5942, allocations: 1.337 MB / 382.8 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006734/0.6009, allocations: 1.992 MB / 384.8 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/0.601, allocations: 3.984 kB / 384.8 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/0.6024, allocations: 151.8 kB / 384.9 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009747/0.6033, allocations: 206.5 kB / 385.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.713e-05/0.6034, allocations: 19.98 kB / 385.2 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01064/0.6141, allocations: 5.114 MB / 390.3 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.6141, allocations: 0 / 390.3 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006077/0.6202, allocations: 1.503 MB / 391.8 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003232/0.6206, allocations: 168.1 kB / 391.9 MB, free: 6.082 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002303/0.6208, allocations: 27.92 kB / 392 MB, free: 6.055 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009082/0.6218, allocations: 55.97 kB / 392 MB, free: 6 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002573/0.622, allocations: 64.56 kB / 392.1 MB, free: 5.938 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.954e-05/0.6221, allocations: 19.98 kB / 392.1 MB, free: 5.918 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000894/0.623, allocations: 435.1 kB / 392.5 MB, free: 5.496 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.623, allocations: 0 / 392.5 MB, free: 5.496 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001246/0.6243, allocations: 283.6 kB / 392.8 MB, free: 5.219 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * 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 (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003045/0.6246, allocations: 139 kB / 392.9 MB, free: 5.074 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003733/0.6284, allocations: 1.391 MB / 394.3 MB, free: 3.602 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/0.6284, allocations: 4 kB / 394.3 MB, free: 3.598 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00259/0.631, allocations: 0.8004 MB / 395.1 MB, free: 2.754 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001561/0.6326, allocations: 206.8 kB / 395.3 MB, free: 2.551 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005367/0.638, allocations: 1.939 MB / 397.3 MB, free: 0.582 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007538/0.6388, allocations: 0.9477 MB / 398.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007491/0.6396, allocations: 94.05 kB / 398.3 MB, free: 15.52 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002776/0.6399, allocations: 59.42 kB / 398.4 MB, free: 15.46 MB / 330.7 MB Notification: Performance of SimCode: time 9.72e-07/0.6399, allocations: 0 / 398.4 MB, free: 15.46 MB / 330.7 MB Notification: Performance of Templates: time 0.04514/0.685, allocations: 15.7 MB / 414.1 MB, free: 15.81 MB / 346.7 MB