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.TwoMasses.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.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadModel(Modelica): time 1.942/1.942, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004073/0.0004075, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07987/0.0803, allocations: 44.52 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.00191/0.08226, allocations: 1.26 MB / 309.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009186/0.0832, allocations: 488.1 kB / 310.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.6e-05/0.08328, allocations: 8 kB / 310.1 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.079e-05/0.08332, allocations: 7.922 kB / 310.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.289e-05/0.08341, allocations: 27.92 kB / 310.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001765/0.0836, allocations: 23.97 kB / 310.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.08373, allocations: 63.91 kB / 310.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.08386, allocations: 27.97 kB / 310.3 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.425e-05/0.08393, allocations: 31.86 kB / 310.3 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.241e-05/0.08403, allocations: 31.92 kB / 310.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.978e-05/0.08406, allocations: 8 kB / 310.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.161e-05/0.08415, allocations: 19.92 kB / 310.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.933e-05/0.08418, allocations: 11.92 kB / 310.4 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.911e-05/0.08425, allocations: 45.64 kB / 310.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001363/0.0844, allocations: 68.08 kB / 310.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.517e-06/0.08442, allocations: 0 / 310.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.127e-06/0.08443, allocations: 0 / 310.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.646e-06/0.08445, allocations: 4 kB / 310.5 MB, free: 14.89 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005041/0.08496, allocations: 367.2 kB / 310.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.08501, allocations: 8.031 kB / 310.8 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001455/0.08517, allocations: 11.91 kB / 310.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.08533, allocations: 163 kB / 311 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.08536, allocations: 8 kB / 311 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.561e-05/0.08541, allocations: 15.98 kB / 311 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.08564, allocations: 81.59 kB / 311.1 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.08566, allocations: 0 / 311.1 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.08569, allocations: 7.953 kB / 311.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.282e-06/0.08571, allocations: 8 kB / 311.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001501/0.08587, allocations: 51.97 kB / 311.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008064/0.08669, allocations: 392.4 kB / 311.6 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.08688, allocations: 70.56 kB / 311.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.08691, allocations: 4 kB / 311.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/0.08696, allocations: 42.48 kB / 311.7 MB, free: 13.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 2.327e-06/0.08697, allocations: 0 / 311.7 MB, free: 13.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002645/0.08725, allocations: 89.86 kB / 311.8 MB, free: 13.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.08731, allocations: 55.41 kB / 311.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.08742, allocations: 109.8 kB / 311.9 MB, free: 13.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.08746, allocations: 25.7 kB / 311.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.08758, allocations: 174.3 kB / 312.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.5e-05/0.08763, allocations: 27.56 kB / 312.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.981e-06/0.08765, allocations: 8 kB / 312.2 MB, free: 13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.08782, allocations: 314.8 kB / 312.5 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.163e-05/0.08789, allocations: 24 kB / 312.5 MB, free: 12.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.676e-05/0.08799, allocations: 42.5 kB / 312.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.535e-05/0.08808, allocations: 35.94 kB / 312.6 MB, free: 12.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.08809, allocations: 0 / 312.6 MB, free: 12.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002451/0.08835, allocations: 109.5 kB / 312.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.08838, allocations: 4 kB / 312.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.08839, allocations: 0 / 312.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.08842, allocations: 4 kB / 312.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.08858, allocations: 23.98 kB / 312.7 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.08861, allocations: 3.953 kB / 312.7 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.588e-05/0.08869, allocations: 8 kB / 312.7 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.08872, allocations: 12 kB / 312.7 MB, free: 12.41 MB / 266.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.0001151/0.08885, allocations: 117.8 kB / 312.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.301e-05/0.0889, allocations: 3.906 kB / 312.8 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.386e-05/0.08894, allocations: 16.31 kB / 312.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.08896, allocations: 0 / 312.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.615e-06/0.08897, allocations: 0 / 312.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.19e-06/0.08899, allocations: 7.938 kB / 312.9 MB, free: 12.26 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002674/0.08927, allocations: 181.6 kB / 313 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.211e-06/0.08928, allocations: 0 / 313 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.08944, allocations: 27.98 kB / 313.1 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.49e-06/0.08946, allocations: 4 kB / 313.1 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.08948, allocations: 0 / 313.1 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.72e-06/0.08949, allocations: 256 / 313.1 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.063e-06/0.0895, allocations: 4 kB / 313.1 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002807/0.08979, allocations: 195.3 kB / 313.3 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.074e-05/0.08987, allocations: 81.05 kB / 313.3 MB, free: 11.69 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.08991, allocations: 8.031 kB / 313.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.802e-05/0.09001, allocations: 4.062 kB / 313.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.747e-05/0.09005, allocations: 11.97 kB / 313.4 MB, free: 11.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.878e-06/0.09006, allocations: 0 / 313.4 MB, free: 11.67 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.422e-05/0.09014, allocations: 83.28 kB / 313.4 MB, free: 11.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-07/0.09015, allocations: 0 / 313.4 MB, free: 11.59 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003272/0.09048, allocations: 27.91 kB / 313.5 MB, free: 11.56 MB / 266.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.0001306/0.09063, allocations: 103.2 kB / 313.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001634/0.09081, allocations: 55.92 kB / 313.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.908e-06/0.09082, allocations: 3.938 kB / 313.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.241e-05/0.09089, allocations: 27.94 kB / 313.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000236/0.09114, allocations: 11.08 kB / 313.7 MB, free: 11.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007921/0.09194, allocations: 410.8 kB / 314.1 MB, free: 10.92 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.09235, allocations: 0.6965 MB / 314.8 MB, free: 10.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.726e-05/0.0924, allocations: 11.44 kB / 314.8 MB, free: 10.19 MB / 266.7 MB Notification: Performance of SimCode: time 1.365e-06/0.09241, allocations: 0 / 314.8 MB, free: 10.19 MB / 266.7 MB Notification: Performance of Templates: time 0.002648/0.09507, allocations: 0.9267 MB / 315.7 MB, free: 9.258 MB / 266.7 MB