Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.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.HeatTransfer.Examples.ControlledTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|heatCapacitor.T|onOffController.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature") Notification: Performance of loadModel(Modelica): time 1.706/1.706, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003528/0.0003531, allocations: 8 kB / 233.8 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08133/0.08171, allocations: 38.76 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3363/0.418, allocations: 68.73 MB / 341.3 MB, free: 5.266 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.4184, allocations: 70.28 kB / 341.3 MB, free: 5.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01691/0.4353, allocations: 3.849 MB / 345.2 MB, free: 1.914 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4353, allocations: 0 / 345.2 MB, free: 1.914 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.193e-05/0.4354, allocations: 4 kB / 345.2 MB, free: 1.91 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001247/0.4366, allocations: 0.5081 MB / 345.7 MB, free: 1.371 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.4367, allocations: 12.03 kB / 345.7 MB, free: 1.359 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001592/0.4369, allocations: 30.83 kB / 345.7 MB, free: 1.332 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003515/0.4372, allocations: 224 kB / 346 MB, free: 1.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.726e-05/0.4373, allocations: 16.08 kB / 346 MB, free: 1.078 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.385e-05/0.4374, allocations: 23.38 kB / 346 MB, free: 1.062 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000694/0.4381, allocations: 232.5 kB / 346.2 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.4381, allocations: 0 / 346.2 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.4381, allocations: 12.06 kB / 346.2 MB, free: 0.875 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.4382, allocations: 4 kB / 346.2 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000659/0.4388, allocations: 168.8 kB / 346.4 MB, free: 0.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001919/0.4408, allocations: 0.8211 MB / 347.2 MB, free: 15.99 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005988/0.4414, allocations: 166.3 kB / 347.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.4415, allocations: 0 / 347.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.4415, allocations: 42.44 kB / 347.4 MB, free: 15.81 MB / 282.7 MB Notification: Performance of pre-optimization done (n=16): time 1.733e-06/0.4415, allocations: 0 / 347.4 MB, free: 15.81 MB / 282.7 MB Notification: Performance of matching and sorting (n=16): time 0.001411/0.4429, allocations: 352.9 kB / 347.8 MB, free: 15.48 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.443, allocations: 63.39 kB / 347.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002322/0.4432, allocations: 169.9 kB / 348 MB, free: 15.25 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.4433, allocations: 29.45 kB / 348 MB, free: 15.22 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.4434, allocations: 208.8 kB / 348.2 MB, free: 15.03 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.198e-05/0.4435, allocations: 57.33 kB / 348.3 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.231e-05/0.4436, allocations: 3.688 kB / 348.3 MB, free: 14.98 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.4437, allocations: 322.4 kB / 348.6 MB, free: 14.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.444, allocations: 59.03 kB / 348.7 MB, free: 14.62 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/0.4443, allocations: 85.33 kB / 348.7 MB, free: 14.54 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00026/0.4446, allocations: 57.61 kB / 348.8 MB, free: 14.5 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.4446, allocations: 0 / 348.8 MB, free: 14.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007935/0.4454, allocations: 218.6 kB / 349 MB, free: 14.32 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.4454, allocations: 9.719 kB / 349 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.4454, allocations: 0 / 349 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002837/0.4457, allocations: 35.14 kB / 349.1 MB, free: 14.28 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002828/0.446, allocations: 35.92 kB / 349.1 MB, free: 14.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001812/0.4479, allocations: 1.365 MB / 350.5 MB, free: 12.83 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003745/0.4483, allocations: 43.48 kB / 350.5 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.4483, allocations: 4 kB / 350.5 MB, free: 12.79 MB / 282.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.0002258/0.4485, allocations: 135.2 kB / 350.6 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.689e-05/0.4486, allocations: 19.8 kB / 350.7 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.432e-05/0.4487, allocations: 19.69 kB / 350.7 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.4487, allocations: 4 kB / 350.7 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.4487, allocations: 0 / 350.7 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.4487, allocations: 0 / 350.7 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.4499, allocations: 0.5313 MB / 351.2 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.45, allocations: 0 / 351.2 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002748/0.4503, allocations: 31.92 kB / 351.2 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002224/0.4505, allocations: 35.08 kB / 351.3 MB, free: 12.05 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.204e-05/0.4505, allocations: 7.578 kB / 351.3 MB, free: 12.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/0.4521, allocations: 1.366 MB / 352.7 MB, free: 10.63 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.4522, allocations: 0 / 352.7 MB, free: 10.63 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.4533, allocations: 377 kB / 353 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001405/0.4534, allocations: 103.9 kB / 353.1 MB, free: 10.2 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.46e-05/0.4535, allocations: 4 kB / 353.1 MB, free: 10.19 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003518/0.4538, allocations: 30.78 kB / 353.2 MB, free: 10.16 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.311e-05/0.454, allocations: 19.28 kB / 353.2 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.454, allocations: 4.281 kB / 353.2 MB, free: 10.14 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001598/0.4542, allocations: 127.2 kB / 353.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4542, allocations: 0 / 353.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000484/0.4547, allocations: 61.09 kB / 353.4 MB, free: 9.98 MB / 282.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.0001847/0.4549, allocations: 114.1 kB / 353.5 MB, free: 9.863 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008543/0.4557, allocations: 272.5 kB / 353.7 MB, free: 9.621 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.4558, allocations: 0 / 353.7 MB, free: 9.621 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004416/0.4562, allocations: 198 kB / 353.9 MB, free: 9.438 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004151/0.4566, allocations: 35.31 kB / 354 MB, free: 9.41 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.4579, allocations: 0.5827 MB / 354.6 MB, free: 8.82 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.4584, allocations: 0.7362 MB / 355.3 MB, free: 8.059 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.8e-05/0.4585, allocations: 15.44 kB / 355.3 MB, free: 8.043 MB / 282.7 MB Notification: Performance of SimCode: time 8.21e-07/0.4585, allocations: 3.938 kB / 355.3 MB, free: 8.039 MB / 282.7 MB Notification: Performance of Templates: time 0.007614/0.4661, allocations: 3.048 MB / 358.4 MB, free: 5.02 MB / 282.7 MB