Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.916/1.916, allocations: 194.8 MB / 211.6 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005667/0.000567, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08841/0.08901, allocations: 44.5 MB / 308.3 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003042/0.0921, allocations: 1.99 MB / 310.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.09336, allocations: 0.6207 MB / 311 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.09351, allocations: 3.938 kB / 311 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 6.876e-05/0.09359, allocations: 27.83 kB / 311 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002027/0.09381, allocations: 75.77 kB / 311.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00022/0.09404, allocations: 43.89 kB / 311.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003195/0.09438, allocations: 191.5 kB / 311.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001927/0.09459, allocations: 73.33 kB / 311.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.09474, allocations: 83.7 kB / 311.4 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.09492, allocations: 95.55 kB / 311.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.09497, allocations: 8 kB / 311.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.235e-05/0.09506, allocations: 16 kB / 311.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.862e-05/0.09512, allocations: 35.84 kB / 311.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.106e-05/0.09521, allocations: 61.64 kB / 311.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002734/0.0955, allocations: 187.8 kB / 311.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.587e-06/0.09551, allocations: 0 / 311.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.048e-06/0.09553, allocations: 4 kB / 311.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.09555, allocations: 0 / 311.8 MB, free: 13.5 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009781/0.09654, allocations: 0.5223 MB / 312.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.09659, allocations: 12.03 kB / 312.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.09674, allocations: 23.72 kB / 312.4 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003359/0.09709, allocations: 239.1 kB / 312.6 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.09713, allocations: 16.44 kB / 312.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.892e-05/0.0972, allocations: 16 kB / 312.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005703/0.09778, allocations: 233.8 kB / 312.9 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.09782, allocations: 0 / 312.9 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.833e-05/0.09786, allocations: 7.938 kB / 312.9 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.09789, allocations: 12 kB / 312.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005394/0.09844, allocations: 161.7 kB / 313.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.1001, allocations: 0.8243 MB / 313.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005128/0.1007, allocations: 170.6 kB / 314.1 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.1007, allocations: 7.922 kB / 314.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.1008, allocations: 38.55 kB / 314.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 2.734e-06/0.1008, allocations: 0 / 314.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.001112/0.1019, allocations: 347.2 kB / 314.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.102, allocations: 63.39 kB / 314.5 MB, free: 10.6 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002196/0.1022, allocations: 166.7 kB / 314.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.354e-05/0.1022, allocations: 29.7 kB / 314.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.1024, allocations: 210.5 kB / 314.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.961e-05/0.1025, allocations: 59.27 kB / 315 MB, free: 10.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.01e-05/0.1025, allocations: 0 / 315 MB, free: 10.12 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.1027, allocations: 326.8 kB / 315.3 MB, free: 9.797 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.1029, allocations: 68.22 kB / 315.4 MB, free: 9.73 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.1032, allocations: 99.44 kB / 315.5 MB, free: 9.621 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002001/0.1034, allocations: 55.98 kB / 315.5 MB, free: 9.566 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1034, allocations: 0 / 315.5 MB, free: 9.566 MB / 266.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006443/0.1041, allocations: 223.1 kB / 315.7 MB, free: 9.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.1041, allocations: 4 kB / 315.7 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.529e-06/0.1041, allocations: 4 kB / 315.7 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002304/0.1044, allocations: 32.84 kB / 315.8 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/0.1046, allocations: 43.86 kB / 315.8 MB, free: 9.254 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001613/0.1062, allocations: 1.363 MB / 317.2 MB, free: 7.754 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002573/0.1065, allocations: 43.78 kB / 317.2 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.1065, allocations: 8 kB / 317.2 MB, free: 7.703 MB / 266.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: 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 (19): * Single equations (assignments): 18 * 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.000191/0.1067, allocations: 138.8 kB / 317.4 MB, free: 7.559 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.116e-05/0.1068, allocations: 11.91 kB / 317.4 MB, free: 7.547 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.273e-05/0.1069, allocations: 21.86 kB / 317.4 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.321e-06/0.1069, allocations: 3.953 kB / 317.4 MB, free: 7.523 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.356e-06/0.1069, allocations: 4 kB / 317.4 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.484e-06/0.1069, allocations: 4.281 kB / 317.4 MB, free: 7.516 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.108, allocations: 0.5225 MB / 317.9 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.204e-06/0.108, allocations: 3.984 kB / 317.9 MB, free: 6.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001916/0.1082, allocations: 31.98 kB / 318 MB, free: 6.898 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001726/0.1084, allocations: 36.83 kB / 318 MB, free: 6.859 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.1084, allocations: 4 kB / 318 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/0.11, allocations: 1.37 MB / 319.4 MB, free: 5.352 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.456e-06/0.11, allocations: 3.938 kB / 319.4 MB, free: 5.348 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008907/0.1109, allocations: 366.9 kB / 319.7 MB, free: 4.973 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.1111, allocations: 108.9 kB / 319.8 MB, free: 4.848 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.067e-05/0.1111, allocations: 0 / 319.8 MB, free: 4.848 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002587/0.1114, allocations: 36.03 kB / 319.9 MB, free: 4.812 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.818e-05/0.1115, allocations: 15.98 kB / 319.9 MB, free: 4.797 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.1115, allocations: 7.938 kB / 319.9 MB, free: 4.789 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001483/0.1117, allocations: 131.2 kB / 320 MB, free: 4.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.36e-07/0.1117, allocations: 0 / 320 MB, free: 4.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004424/0.1121, allocations: 59.84 kB / 320.1 MB, free: 4.602 MB / 266.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.0001447/0.1123, allocations: 107.2 kB / 320.2 MB, free: 4.484 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006774/0.113, allocations: 258.8 kB / 320.4 MB, free: 4.219 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.572e-06/0.113, allocations: 4 kB / 320.4 MB, free: 4.215 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003807/0.1134, allocations: 210.6 kB / 320.6 MB, free: 3.996 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000333/0.1138, allocations: 28.39 kB / 320.7 MB, free: 3.969 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.1149, allocations: 0.5888 MB / 321.3 MB, free: 3.352 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004451/0.1153, allocations: 0.7397 MB / 322 MB, free: 2.582 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.016e-05/0.1154, allocations: 15.44 kB / 322 MB, free: 2.57 MB / 266.7 MB Notification: Performance of SimCode: time 1.477e-06/0.1154, allocations: 7.938 kB / 322 MB, free: 2.562 MB / 266.7 MB Notification: Performance of Templates: time 0.00634/0.1218, allocations: 3.035 MB / 325.1 MB, free: 15.53 MB / 282.7 MB