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.HeatTransfer.Examples.TwoMasses.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.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadModel(Modelica): time 1.763/1.763, allocations: 171.2 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000753/0.0007532, allocations: 12 kB / 233.2 MB, free: 3.047 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1168, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002113/0.119, allocations: 1.252 MB / 273.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.1204, allocations: 483.6 kB / 273.6 MB, free: 10.45 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.029e-05/0.1205, allocations: 4 kB / 273.7 MB, free: 10.45 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.381e-05/0.1205, allocations: 7.922 kB / 273.7 MB, free: 10.44 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.1207, allocations: 31.92 kB / 273.7 MB, free: 10.41 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000245/0.121, allocations: 19.92 kB / 273.7 MB, free: 10.39 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001403/0.1211, allocations: 75.83 kB / 273.8 MB, free: 10.31 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.1212, allocations: 27.98 kB / 273.8 MB, free: 10.29 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.145e-05/0.1213, allocations: 27.92 kB / 273.8 MB, free: 10.26 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.084e-05/0.1214, allocations: 39.78 kB / 273.9 MB, free: 10.22 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.826e-05/0.1214, allocations: 4 kB / 273.9 MB, free: 10.21 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.521e-05/0.1215, allocations: 11.98 kB / 273.9 MB, free: 10.2 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 2.175e-05/0.1216, allocations: 15.94 kB / 273.9 MB, free: 10.19 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.338e-05/0.1216, allocations: 33.7 kB / 273.9 MB, free: 10.15 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001394/0.1218, allocations: 76.06 kB / 274 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.1218, allocations: 0 / 274 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.009e-06/0.1218, allocations: 0 / 274 MB, free: 10.07 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.509e-06/0.1218, allocations: 4 kB / 274 MB, free: 10.07 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005159/0.1223, allocations: 371.1 kB / 274.4 MB, free: 9.66 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.1224, allocations: 12.03 kB / 274.4 MB, free: 9.648 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.1225, allocations: 7.906 kB / 274.4 MB, free: 9.641 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.1227, allocations: 167 kB / 274.6 MB, free: 9.438 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.1227, allocations: 7.953 kB / 274.6 MB, free: 9.43 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.421e-05/0.1228, allocations: 8 kB / 274.6 MB, free: 9.422 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002063/0.123, allocations: 91.38 kB / 274.7 MB, free: 9.328 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.123, allocations: 0 / 274.7 MB, free: 9.328 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.1231, allocations: 4 kB / 274.7 MB, free: 9.324 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.458e-06/0.1231, allocations: 4 kB / 274.7 MB, free: 9.32 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001587/0.1232, allocations: 55.86 kB / 274.7 MB, free: 9.266 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008973/0.1242, allocations: 400.6 kB / 275.1 MB, free: 8.824 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.1244, allocations: 74.53 kB / 275.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.346e-05/0.1244, allocations: 3.938 kB / 275.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.1244, allocations: 30.56 kB / 275.2 MB, free: 8.699 MB / 234.7 MB Notification: Performance of pre-optimization done (n=8): time 2.538e-06/0.1244, allocations: 4 kB / 275.2 MB, free: 8.695 MB / 234.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002788/0.1247, allocations: 85.53 kB / 275.3 MB, free: 8.605 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.1248, allocations: 51.41 kB / 275.4 MB, free: 8.543 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.1249, allocations: 117.8 kB / 275.5 MB, free: 8.418 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.125, allocations: 25.7 kB / 275.5 MB, free: 8.387 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.1251, allocations: 170.5 kB / 275.7 MB, free: 8.219 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.655e-05/0.1251, allocations: 31.55 kB / 275.7 MB, free: 8.188 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.638e-06/0.1251, allocations: 0 / 275.7 MB, free: 8.188 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.1253, allocations: 326.8 kB / 276 MB, free: 7.859 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.986e-05/0.1254, allocations: 16 kB / 276 MB, free: 7.844 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.542e-05/0.1255, allocations: 50.56 kB / 276.1 MB, free: 7.785 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.697e-05/0.1256, allocations: 28 kB / 276.1 MB, free: 7.758 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.578e-06/0.1256, allocations: 0 / 276.1 MB, free: 7.758 MB / 234.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002275/0.1258, allocations: 101.5 kB / 276.2 MB, free: 7.652 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.1259, allocations: 8 kB / 276.2 MB, free: 7.645 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.225e-06/0.1259, allocations: 0 / 276.2 MB, free: 7.645 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.1259, allocations: 0 / 276.2 MB, free: 7.645 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001638/0.1261, allocations: 27.92 kB / 276.3 MB, free: 7.617 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.1261, allocations: 12 kB / 276.3 MB, free: 7.605 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.536e-05/0.1262, allocations: 15.84 kB / 276.3 MB, free: 7.59 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.783e-06/0.1262, allocations: 0 / 276.3 MB, free: 7.59 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.1264, allocations: 117.8 kB / 276.4 MB, free: 7.465 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.651e-05/0.1264, allocations: 8 kB / 276.4 MB, free: 7.457 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.549e-05/0.1265, allocations: 8.625 kB / 276.4 MB, free: 7.445 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.108e-06/0.1265, allocations: 4 kB / 276.4 MB, free: 7.441 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.1265, allocations: 4 kB / 276.4 MB, free: 7.438 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.354e-06/0.1265, allocations: 7.984 kB / 276.4 MB, free: 7.43 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002726/0.1268, allocations: 189.5 kB / 276.6 MB, free: 7.195 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.437e-06/0.1268, allocations: 0 / 276.6 MB, free: 7.195 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001412/0.127, allocations: 19.98 kB / 276.6 MB, free: 7.176 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.127, allocations: 0 / 276.6 MB, free: 7.176 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.127, allocations: 0 / 276.6 MB, free: 7.176 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.976e-06/0.127, allocations: 4 kB / 276.6 MB, free: 7.172 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.676e-06/0.127, allocations: 0 / 276.6 MB, free: 7.172 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002883/0.1273, allocations: 199.5 kB / 276.8 MB, free: 6.961 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.311e-05/0.1274, allocations: 84.95 kB / 276.9 MB, free: 6.859 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.1274, allocations: 0 / 276.9 MB, free: 6.859 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.616e-05/0.1275, allocations: 4 kB / 276.9 MB, free: 6.855 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.927e-05/0.1276, allocations: 11.92 kB / 276.9 MB, free: 6.844 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.1276, allocations: 4 kB / 276.9 MB, free: 6.84 MB / 234.7 MB Notification: Performance of sorting global known variables: time 6.26e-05/0.1276, allocations: 79.28 kB / 277 MB, free: 6.762 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.93e-07/0.1277, allocations: 0 / 277 MB, free: 6.762 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0003295/0.128, allocations: 24 kB / 277 MB, free: 6.738 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.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 (8): * Single equations (assignments): 8 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001236/0.1281, allocations: 107.3 kB / 277.1 MB, free: 6.625 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001683/0.1283, allocations: 59.86 kB / 277.2 MB, free: 6.566 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.459e-06/0.1283, allocations: 0 / 277.2 MB, free: 6.566 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 5.243e-05/0.1284, allocations: 20 kB / 277.2 MB, free: 6.547 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.1287, allocations: 11.94 kB / 277.2 MB, free: 6.535 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008151/0.1295, allocations: 418.7 kB / 277.6 MB, free: 6.09 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003741/0.1299, allocations: 0.6926 MB / 278.3 MB, free: 5.371 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.958e-05/0.1299, allocations: 15.44 kB / 278.3 MB, free: 5.355 MB / 234.7 MB Notification: Performance of SimCode: time 1.42e-06/0.13, allocations: 0 / 278.3 MB, free: 5.355 MB / 234.7 MB Notification: Performance of Templates: time 0.002643/0.1326, allocations: 0.9384 MB / 279.3 MB, free: 4.414 MB / 234.7 MB