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.851/1.851, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003814/0.0003815, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08052/0.08093, allocations: 44.52 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3357/0.4167, allocations: 71.4 MB / 379.9 MB, free: 18.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.4169, allocations: 69.39 kB / 379.9 MB, free: 18.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006375/0.4233, allocations: 1.75 MB / 381.7 MB, free: 18.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.775e-06/0.4234, allocations: 0 / 381.7 MB, free: 18.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.4234, allocations: 6.25 kB / 381.7 MB, free: 18.38 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.000366/0.4238, allocations: 373.8 kB / 382 MB, free: 18.01 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.4238, allocations: 9.469 kB / 382 MB, free: 18.01 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001518/0.424, allocations: 12.33 kB / 382.1 MB, free: 18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.982e-05/0.4241, allocations: 169.4 kB / 382.2 MB, free: 17.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.4241, allocations: 10.72 kB / 382.2 MB, free: 17.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.682e-05/0.4242, allocations: 15.84 kB / 382.3 MB, free: 17.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.4244, allocations: 81.36 kB / 382.3 MB, free: 17.76 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.4244, allocations: 0 / 382.3 MB, free: 17.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.4245, allocations: 4.75 kB / 382.3 MB, free: 17.76 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.4245, allocations: 12.44 kB / 382.3 MB, free: 17.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001449/0.4246, allocations: 50.19 kB / 382.4 MB, free: 17.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007052/0.4254, allocations: 394.1 kB / 382.8 MB, free: 17.47 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001562/0.4255, allocations: 79.45 kB / 382.9 MB, free: 17.44 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.4256, allocations: 1.375 kB / 382.9 MB, free: 17.44 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.977e-05/0.4256, allocations: 34.84 kB / 382.9 MB, free: 17.4 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 2.536e-06/0.4256, allocations: 0 / 382.9 MB, free: 17.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002491/0.4259, allocations: 90.88 kB / 383 MB, free: 17.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.412e-05/0.4259, allocations: 61.34 kB / 383 MB, free: 17.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.995e-05/0.426, allocations: 96.86 kB / 383.1 MB, free: 17.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.426, allocations: 25.7 kB / 383.2 MB, free: 17.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.182e-05/0.4261, allocations: 177.5 kB / 383.3 MB, free: 17.01 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.561e-05/0.4261, allocations: 29.45 kB / 383.4 MB, free: 16.99 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.825e-06/0.4261, allocations: 0 / 383.4 MB, free: 16.99 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.016e-05/0.4262, allocations: 317.3 kB / 383.7 MB, free: 16.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.868e-05/0.4262, allocations: 26.84 kB / 383.7 MB, free: 16.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.459e-05/0.4263, allocations: 39.72 kB / 383.7 MB, free: 16.65 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.09e-05/0.4264, allocations: 28.53 kB / 383.8 MB, free: 16.65 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.777e-06/0.4264, allocations: 5.438 kB / 383.8 MB, free: 16.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002016/0.4266, allocations: 107.4 kB / 383.9 MB, free: 16.6 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.4267, allocations: 6.719 kB / 383.9 MB, free: 16.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.4267, allocations: 0 / 383.9 MB, free: 16.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.4267, allocations: 1.938 kB / 383.9 MB, free: 16.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.4269, allocations: 21.92 kB / 383.9 MB, free: 16.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.367e-06/0.4269, allocations: 3.156 kB / 383.9 MB, free: 16.6 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.553e-05/0.427, allocations: 20.42 kB / 383.9 MB, free: 16.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.427, allocations: 2.219 kB / 383.9 MB, free: 16.59 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.956e-05/0.4271, allocations: 124.8 kB / 384.1 MB, free: 16.47 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.837e-05/0.4272, allocations: 7.312 kB / 384.1 MB, free: 16.47 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.263e-05/0.4272, allocations: 9.688 kB / 384.1 MB, free: 16.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.765e-06/0.4272, allocations: 1.812 kB / 384.1 MB, free: 16.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.494e-06/0.4272, allocations: 1.812 kB / 384.1 MB, free: 16.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.816e-06/0.4272, allocations: 1.828 kB / 384.1 MB, free: 16.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002012/0.4275, allocations: 190.6 kB / 384.3 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.041e-06/0.4275, allocations: 5.094 kB / 384.3 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.4276, allocations: 16.61 kB / 384.3 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.599e-06/0.4276, allocations: 1.188 kB / 384.3 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.4277, allocations: 1.188 kB / 384.3 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.439e-06/0.4277, allocations: 1.641 kB / 384.3 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4277, allocations: 1.062 kB / 384.3 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002275/0.4279, allocations: 196 kB / 384.5 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.564e-05/0.428, allocations: 78.73 kB / 384.6 MB, free: 16.03 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.428, allocations: 9.906 kB / 384.6 MB, free: 16.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.017e-05/0.4281, allocations: 5.672 kB / 384.6 MB, free: 16.02 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.923e-05/0.4281, allocations: 9.125 kB / 384.6 MB, free: 16.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.402e-06/0.4281, allocations: 2.5 kB / 384.6 MB, free: 16.02 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.464e-05/0.4282, allocations: 84.7 kB / 384.7 MB, free: 15.95 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.65e-07/0.4282, allocations: 1.969 kB / 384.7 MB, free: 15.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003535/0.4286, allocations: 30.91 kB / 384.7 MB, free: 15.94 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 9.811e-05/0.4287, allocations: 99.56 kB / 384.8 MB, free: 15.85 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001702/0.4289, allocations: 61.36 kB / 384.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.782e-06/0.4289, allocations: 0 / 384.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 4.771e-05/0.4289, allocations: 22.14 kB / 384.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002396/0.4292, allocations: 16.98 kB / 384.9 MB, free: 15.83 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006894/0.4299, allocations: 406.5 kB / 385.3 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001376/0.43, allocations: 0.6954 MB / 386 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.027e-05/0.4301, allocations: 12.81 kB / 386 MB, free: 14.83 MB / 314.7 MB Notification: Performance of SimCode: time 1.416e-06/0.4301, allocations: 0 / 386 MB, free: 14.83 MB / 314.7 MB Notification: Performance of Templates: time 0.002523/0.4326, allocations: 0.9309 MB / 386.9 MB, free: 14.77 MB / 314.7 MB