Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|heatCapacitor.T|onOffController.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature") Notification: Performance of loadModel(Modelica): time 1.854/1.854, allocations: 194.9 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003477/0.0003478, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09181/0.09218, allocations: 44.5 MB / 309 MB, free: 1.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.466/0.5583, allocations: 73.99 MB / 382.9 MB, free: 14.9 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.5586, allocations: 74.66 kB / 383 MB, free: 14.9 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0157/0.5743, allocations: 3.831 MB / 386.9 MB, free: 14.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5743, allocations: 0 / 386.9 MB, free: 14.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.775e-05/0.5744, allocations: 5.281 kB / 386.9 MB, free: 14.34 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001043/0.5754, allocations: 0.5086 MB / 387.4 MB, free: 13.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.5755, allocations: 11.91 kB / 387.4 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.5756, allocations: 28.92 kB / 387.4 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/0.5759, allocations: 239 kB / 387.6 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/0.576, allocations: 16.09 kB / 387.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.664e-05/0.576, allocations: 20.06 kB / 387.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006253/0.5767, allocations: 227 kB / 387.9 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.5767, allocations: 1.312 kB / 387.9 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.374e-05/0.5767, allocations: 9.594 kB / 387.9 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.5768, allocations: 9.188 kB / 387.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006123/0.5774, allocations: 166.5 kB / 388.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.5791, allocations: 0.8192 MB / 388.9 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005822/0.5797, allocations: 174.3 kB / 389.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.5798, allocations: 5.25 kB / 389.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.5798, allocations: 36.84 kB / 389.1 MB, free: 13.07 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 2.504e-06/0.5798, allocations: 0 / 389.1 MB, free: 13.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=16): time 0.001311/0.5811, allocations: 354.2 kB / 389.5 MB, free: 12.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.5812, allocations: 55.34 kB / 389.5 MB, free: 12.85 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/0.5814, allocations: 177.4 kB / 389.7 MB, free: 12.74 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.5814, allocations: 29.7 kB / 389.7 MB, free: 12.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.215e-05/0.5815, allocations: 203.9 kB / 389.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.214e-05/0.5816, allocations: 58.22 kB / 390 MB, free: 12.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.194e-05/0.5816, allocations: 2.75 kB / 390 MB, free: 12.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.839e-05/0.5817, allocations: 324.7 kB / 390.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000237/0.5819, allocations: 53.66 kB / 390.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000264/0.5822, allocations: 102.9 kB / 390.4 MB, free: 12.14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002388/0.5824, allocations: 56.83 kB / 390.5 MB, free: 12.14 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.5825, allocations: 7.875 kB / 390.5 MB, free: 12.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006815/0.5832, allocations: 205.7 kB / 390.7 MB, free: 12.08 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.5832, allocations: 7.875 kB / 390.7 MB, free: 12.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.5832, allocations: 9.594 kB / 390.7 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002548/0.5835, allocations: 32.58 kB / 390.8 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002564/0.5837, allocations: 35.98 kB / 390.8 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001216/0.585, allocations: 1.371 MB / 392.2 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00034/0.5853, allocations: 36.41 kB / 392.2 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.5854, allocations: 3.906 kB / 392.2 MB, free: 10.78 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.onOffController.y,onOffController.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001655/0.5855, allocations: 140.6 kB / 392.3 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.173e-05/0.5856, allocations: 15.56 kB / 392.4 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.506e-05/0.5857, allocations: 27.66 kB / 392.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.5857, allocations: 0 / 392.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/0.5857, allocations: 3.953 kB / 392.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.5857, allocations: 3.875 kB / 392.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.5868, allocations: 0.5224 MB / 392.9 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.5868, allocations: 0 / 392.9 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002635/0.5871, allocations: 29.38 kB / 392.9 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001859/0.5873, allocations: 30.97 kB / 393 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.882e-05/0.5873, allocations: 5.344 kB / 393 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001123/0.5885, allocations: 1.373 MB / 394.3 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.5885, allocations: 4.062 kB / 394.3 MB, free: 9.035 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000936/0.5894, allocations: 376.9 kB / 394.7 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.5896, allocations: 99.45 kB / 394.8 MB, free: 8.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.078e-05/0.5896, allocations: 5.547 kB / 394.8 MB, free: 8.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003343/0.59, allocations: 22.19 kB / 394.8 MB, free: 8.77 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.429e-05/0.59, allocations: 22.39 kB / 394.9 MB, free: 8.766 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.5901, allocations: 3.844 kB / 394.9 MB, free: 8.766 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001551/0.5902, allocations: 138.7 kB / 395 MB, free: 8.68 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5903, allocations: 0 / 395 MB, free: 8.68 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004362/0.5907, allocations: 64.28 kB / 395.1 MB, free: 8.668 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (heatCapacitor.T) * Number of discrete variables: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001377/0.5908, allocations: 107.5 kB / 395.2 MB, free: 8.574 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000742/0.5916, allocations: 275.6 kB / 395.4 MB, free: 8.445 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5916, allocations: 0 / 395.4 MB, free: 8.445 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003656/0.592, allocations: 202.2 kB / 395.6 MB, free: 8.324 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003763/0.5924, allocations: 29.94 kB / 395.7 MB, free: 8.324 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.5934, allocations: 0.577 MB / 396.2 MB, free: 7.965 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001886/0.5936, allocations: 0.7422 MB / 397 MB, free: 7.262 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.42e-05/0.5937, allocations: 15.25 kB / 397 MB, free: 7.258 MB / 314.7 MB Notification: Performance of SimCode: time 8.92e-07/0.5937, allocations: 0 / 397 MB, free: 7.258 MB / 314.7 MB Notification: Performance of Templates: time 0.006319/0.6, allocations: 3.057 MB / 400.1 MB, free: 7.09 MB / 314.7 MB