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.TwoMasses.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.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.894/1.894, allocations: 194.9 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003703/0.0003705, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09467/0.09506, allocations: 44.51 MB / 309 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3839/0.479, allocations: 71.39 MB / 380.4 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.4793, allocations: 71.38 kB / 380.4 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006712/0.4861, allocations: 1.763 MB / 382.2 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.053e-06/0.4861, allocations: 0 / 382.2 MB, free: 14.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.944e-06/0.4861, allocations: 1.25 kB / 382.2 MB, free: 14.45 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003905/0.4865, allocations: 365.7 kB / 382.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.4866, allocations: 9.438 kB / 382.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.4867, allocations: 15.41 kB / 382.6 MB, free: 14.08 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.4868, allocations: 175 kB / 382.8 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.4869, allocations: 6.688 kB / 382.8 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.29e-05/0.4869, allocations: 11.19 kB / 382.8 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002072/0.4871, allocations: 81.64 kB / 382.8 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.4872, allocations: 0 / 382.8 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.4872, allocations: 1.438 kB / 382.8 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.4872, allocations: 7.609 kB / 382.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001643/0.4874, allocations: 56.67 kB / 382.9 MB, free: 13.83 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007849/0.4882, allocations: 400.5 kB / 383.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001657/0.4884, allocations: 72.77 kB / 383.4 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.149e-05/0.4884, allocations: 1.312 kB / 383.4 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.4884, allocations: 37.39 kB / 383.4 MB, free: 13.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 2.084e-06/0.4884, allocations: 2.844 kB / 383.4 MB, free: 13.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002538/0.4887, allocations: 92.12 kB / 383.5 MB, free: 13.43 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.757e-05/0.4887, allocations: 56.53 kB / 383.6 MB, free: 13.37 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.928e-05/0.4888, allocations: 107.5 kB / 383.7 MB, free: 13.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.199e-05/0.4888, allocations: 27.14 kB / 383.7 MB, free: 13.24 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.254e-05/0.4889, allocations: 174.4 kB / 383.9 MB, free: 13.08 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.805e-05/0.4889, allocations: 30.66 kB / 383.9 MB, free: 13.06 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-06/0.4889, allocations: 3.188 kB / 383.9 MB, free: 13.06 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.571e-05/0.489, allocations: 321.8 kB / 384.2 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.614e-05/0.4891, allocations: 20.5 kB / 384.2 MB, free: 12.74 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.999e-05/0.4892, allocations: 41.19 kB / 384.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.105e-05/0.4893, allocations: 24.34 kB / 384.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4893, allocations: 1.125 kB / 384.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002191/0.4895, allocations: 115.9 kB / 384.4 MB, free: 12.67 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.4895, allocations: 6.031 kB / 384.4 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.4895, allocations: 2.797 kB / 384.4 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.4896, allocations: 1.469 kB / 384.4 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002335/0.4898, allocations: 27.22 kB / 384.4 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.4898, allocations: 1.375 kB / 384.4 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.123e-05/0.4899, allocations: 12.27 kB / 384.5 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.49, allocations: 4.938 kB / 384.5 MB, free: 12.66 MB / 314.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 7.922e-05/0.49, allocations: 122.3 kB / 384.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.206e-05/0.4901, allocations: 5.312 kB / 384.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.375e-05/0.4901, allocations: 10.91 kB / 384.6 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.4901, allocations: 1.438 kB / 384.6 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4902, allocations: 0.75 kB / 384.6 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.4902, allocations: 0 / 384.6 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/0.4904, allocations: 188.8 kB / 384.8 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.4904, allocations: 0 / 384.8 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001874/0.4906, allocations: 22.53 kB / 384.8 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.4906, allocations: 0 / 384.8 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.4906, allocations: 7.719 kB / 384.8 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.4906, allocations: 2.25 kB / 384.8 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.4906, allocations: 0 / 384.8 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002417/0.4909, allocations: 197 kB / 385 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.79e-05/0.4909, allocations: 80.47 kB / 385.1 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.491, allocations: 1.125 kB / 385.1 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.274e-05/0.4911, allocations: 3.969 kB / 385.1 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.046e-05/0.4911, allocations: 9.906 kB / 385.1 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.463e-06/0.4911, allocations: 9.031 kB / 385.1 MB, free: 12.09 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.81e-05/0.4912, allocations: 85.48 kB / 385.2 MB, free: 12.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4912, allocations: 0 / 385.2 MB, free: 12.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003237/0.4915, allocations: 31.66 kB / 385.2 MB, free: 12.01 MB / 314.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.000104/0.4916, allocations: 96.88 kB / 385.3 MB, free: 11.92 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001788/0.4918, allocations: 56.53 kB / 385.4 MB, free: 11.91 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4918, allocations: 0 / 385.4 MB, free: 11.91 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.437e-05/0.4919, allocations: 26.92 kB / 385.4 MB, free: 11.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.4922, allocations: 10.75 kB / 385.4 MB, free: 11.91 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000767/0.4929, allocations: 410.4 kB / 385.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001435/0.4931, allocations: 0.6948 MB / 386.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.403e-05/0.4931, allocations: 11.62 kB / 386.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of SimCode: time 7.01e-07/0.4931, allocations: 1.25 kB / 386.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of Templates: time 0.002834/0.496, allocations: 0.9378 MB / 387.5 MB, free: 10.84 MB / 314.7 MB