Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.734/1.734, allocations: 171.1 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003417/0.0003419, allocations: 12 kB / 233.8 MB, free: 0.9648 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08388/0.08424, allocations: 38.76 MB / 272.5 MB, free: 10.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.326/0.4103, allocations: 66.09 MB / 338.6 MB, free: 1.02 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.4106, allocations: 75.95 kB / 338.7 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007282/0.4179, allocations: 1.765 MB / 340.5 MB, free: 15.18 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.418, allocations: 0 / 340.5 MB, free: 15.18 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.418, allocations: 4 kB / 340.5 MB, free: 15.18 MB / 282.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.0005397/0.4186, allocations: 371.1 kB / 340.8 MB, free: 14.77 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.4186, allocations: 8.031 kB / 340.8 MB, free: 14.76 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.4188, allocations: 15.91 kB / 340.9 MB, free: 14.75 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.4189, allocations: 171 kB / 341 MB, free: 14.54 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.4189, allocations: 7.953 kB / 341 MB, free: 14.53 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.011e-05/0.419, allocations: 12 kB / 341 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002299/0.4192, allocations: 82.92 kB / 341.1 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.4193, allocations: 6.406 kB / 341.1 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.4193, allocations: 0 / 341.1 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.4193, allocations: 4 kB / 341.1 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.4195, allocations: 55.92 kB / 341.2 MB, free: 14.37 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008923/0.4204, allocations: 404.6 kB / 341.6 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001842/0.4206, allocations: 74.48 kB / 341.7 MB, free: 13.84 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.519e-05/0.4206, allocations: 4 kB / 341.7 MB, free: 13.84 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.4207, allocations: 34.5 kB / 341.7 MB, free: 13.8 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 1.834e-06/0.4207, allocations: 0 / 341.7 MB, free: 13.8 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.000282/0.421, allocations: 81.59 kB / 341.8 MB, free: 13.71 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.421, allocations: 59.39 kB / 341.8 MB, free: 13.64 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.786e-05/0.4211, allocations: 105.9 kB / 341.9 MB, free: 13.53 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.4212, allocations: 29.7 kB / 342 MB, free: 13.49 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.23e-05/0.4213, allocations: 166.3 kB / 342.1 MB, free: 13.33 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.676e-05/0.4213, allocations: 35.7 kB / 342.2 MB, free: 13.29 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.445e-06/0.4213, allocations: 4 kB / 342.2 MB, free: 13.29 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.4215, allocations: 314.8 kB / 342.5 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.037e-05/0.4215, allocations: 23.98 kB / 342.5 MB, free: 12.95 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.487e-05/0.4216, allocations: 50.5 kB / 342.5 MB, free: 12.89 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.917e-05/0.4217, allocations: 36.42 kB / 342.6 MB, free: 12.86 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4218, allocations: 0 / 342.6 MB, free: 12.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002286/0.422, allocations: 101.1 kB / 342.7 MB, free: 12.75 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.422, allocations: 4 kB / 342.7 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.422, allocations: 0 / 342.7 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.4221, allocations: 4 kB / 342.7 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002327/0.4223, allocations: 23.98 kB / 342.7 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.4223, allocations: 4.062 kB / 342.7 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.4224, allocations: 15.84 kB / 342.7 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.4225, allocations: 4 kB / 342.7 MB, free: 12.7 MB / 282.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.0001079/0.4226, allocations: 125.7 kB / 342.9 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.087e-05/0.4226, allocations: 0 / 342.9 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.273e-05/0.4227, allocations: 12.38 kB / 342.9 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.4227, allocations: 0 / 342.9 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.4227, allocations: 0 / 342.9 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.4227, allocations: 7.938 kB / 342.9 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002589/0.423, allocations: 197.5 kB / 343.1 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.423, allocations: 0 / 343.1 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001901/0.4232, allocations: 16 kB / 343.1 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.224e-05/0.4232, allocations: 7.984 kB / 343.1 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.4233, allocations: 0 / 343.1 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4233, allocations: 0 / 343.1 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4233, allocations: 0 / 343.1 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000281/0.4236, allocations: 195.4 kB / 343.3 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.796e-05/0.4236, allocations: 85 kB / 343.4 MB, free: 11.97 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.464e-05/0.4237, allocations: 4.031 kB / 343.4 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.873e-05/0.4238, allocations: 3.938 kB / 343.4 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.183e-05/0.4238, allocations: 4 kB / 343.4 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-06/0.4238, allocations: 4 kB / 343.4 MB, free: 11.95 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.359e-05/0.4239, allocations: 83.52 kB / 343.5 MB, free: 11.87 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4239, allocations: 0 / 343.5 MB, free: 11.87 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003244/0.4242, allocations: 27.94 kB / 343.5 MB, free: 11.84 MB / 282.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.0001369/0.4244, allocations: 103.3 kB / 343.6 MB, free: 11.73 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001958/0.4246, allocations: 63.91 kB / 343.7 MB, free: 11.67 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.4246, allocations: 0 / 343.7 MB, free: 11.67 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.088e-05/0.4247, allocations: 28.31 kB / 343.7 MB, free: 11.64 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002511/0.4249, allocations: 7.375 kB / 343.7 MB, free: 11.64 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009369/0.4259, allocations: 415.2 kB / 344.1 MB, free: 11.2 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.4262, allocations: 0.6965 MB / 344.8 MB, free: 10.48 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.17e-05/0.4262, allocations: 11.44 kB / 344.8 MB, free: 10.46 MB / 282.7 MB Notification: Performance of SimCode: time 1.723e-05/0.4263, allocations: 4 kB / 344.8 MB, free: 10.46 MB / 282.7 MB Notification: Performance of Templates: time 0.003041/0.4293, allocations: 0.9378 MB / 345.7 MB, free: 9.52 MB / 282.7 MB