Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.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.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadModel(Modelica): time 2.067/2.067, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003542, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07915/0.07953, allocations: 44.5 MB / 308.4 MB, free: 1.008 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3634/0.443, allocations: 69.79 MB / 378.2 MB, free: 18.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001635/0.4432, allocations: 57.8 kB / 378.3 MB, free: 18.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002332/0.4455, allocations: 0.8296 MB / 379.1 MB, free: 18.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.577e-06/0.4455, allocations: 7.938 kB / 379.1 MB, free: 18.51 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.369e-06/0.4456, allocations: 0 / 379.1 MB, free: 18.51 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0002618/0.4458, allocations: 328 kB / 379.4 MB, free: 18.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.4459, allocations: 9.656 kB / 379.4 MB, free: 18.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.358e-05/0.4459, allocations: 2.938 kB / 379.4 MB, free: 18.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.926e-05/0.446, allocations: 176 kB / 379.6 MB, free: 17.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.446, allocations: 0 / 379.6 MB, free: 17.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.952e-05/0.4461, allocations: 3.266 kB / 379.6 MB, free: 17.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001871/0.4463, allocations: 104.7 kB / 379.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.663e-06/0.4463, allocations: 0 / 379.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.592e-05/0.4463, allocations: 5.656 kB / 379.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.779e-06/0.4463, allocations: 5.984 kB / 379.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.189e-05/0.4464, allocations: 42.67 kB / 379.8 MB, free: 17.88 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001438/0.4466, allocations: 181.7 kB / 380 MB, free: 17.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001145/0.4467, allocations: 109.4 kB / 380.1 MB, free: 17.56 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.081e-06/0.4467, allocations: 1.531 kB / 380.1 MB, free: 17.56 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.4468, allocations: 45.78 kB / 380.1 MB, free: 17.51 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 2.078e-06/0.4468, allocations: 1.5 kB / 380.1 MB, free: 17.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004595/0.4472, allocations: 200.8 kB / 380.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.4473, allocations: 136.7 kB / 380.4 MB, free: 17.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.053e-05/0.4474, allocations: 103.4 kB / 380.5 MB, free: 17.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.4474, allocations: 31.14 kB / 380.6 MB, free: 17.2 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.025e-05/0.4474, allocations: 157.3 kB / 380.7 MB, free: 17.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.4475, allocations: 10.52 kB / 380.7 MB, free: 17.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.875e-06/0.4475, allocations: 0 / 380.7 MB, free: 17.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.685e-05/0.4476, allocations: 317.5 kB / 381 MB, free: 16.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.812e-05/0.4476, allocations: 35.69 kB / 381.1 MB, free: 16.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.429e-05/0.4477, allocations: 57.23 kB / 381.1 MB, free: 16.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.154e-05/0.4478, allocations: 46.64 kB / 381.2 MB, free: 16.69 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.4479, allocations: 1.062 kB / 381.2 MB, free: 16.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002431/0.4481, allocations: 130.1 kB / 381.3 MB, free: 16.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.4481, allocations: 4.656 kB / 381.3 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.785e-06/0.4482, allocations: 2.469 kB / 381.3 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.4482, allocations: 1.562 kB / 381.3 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.511e-05/0.4482, allocations: 2.062 kB / 381.3 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.623e-06/0.4482, allocations: 9.906 kB / 381.3 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.579e-05/0.4483, allocations: 1.156 kB / 381.3 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.704e-05/0.4483, allocations: 6.281 kB / 381.3 MB, free: 16.64 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (success4,success3,success2,success1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.095e-05/0.4484, allocations: 119.8 kB / 381.5 MB, free: 16.53 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.516e-05/0.4484, allocations: 14.19 kB / 381.5 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.901e-05/0.4485, allocations: 5.25 kB / 381.5 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.202e-06/0.4485, allocations: 5.969 kB / 381.5 MB, free: 16.51 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.4485, allocations: 5 kB / 381.5 MB, free: 16.51 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.662e-06/0.4485, allocations: 1.125 kB / 381.5 MB, free: 16.51 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.261e-05/0.4486, allocations: 162.8 kB / 381.6 MB, free: 16.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.954e-06/0.4486, allocations: 0.875 kB / 381.6 MB, free: 16.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.327e-06/0.4486, allocations: 1.844 kB / 381.6 MB, free: 16.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.956e-06/0.4486, allocations: 5.062 kB / 381.7 MB, free: 16.31 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.4487, allocations: 9.938 kB / 381.7 MB, free: 16.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.808e-06/0.4487, allocations: 1.781 kB / 381.7 MB, free: 16.31 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.982e-06/0.4487, allocations: 1.828 kB / 381.7 MB, free: 16.31 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003381/0.449, allocations: 245.1 kB / 381.9 MB, free: 16.16 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.139e-05/0.4491, allocations: 83.39 kB / 382 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.4491, allocations: 3.109 kB / 382 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.09e-05/0.4492, allocations: 2.812 kB / 382 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.156e-05/0.4492, allocations: 10.69 kB / 382 MB, free: 16.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.4492, allocations: 8.969 kB / 382 MB, free: 16.06 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.356e-05/0.4493, allocations: 89.98 kB / 382.1 MB, free: 15.99 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.84e-07/0.4493, allocations: 0 / 382.1 MB, free: 15.99 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002757/0.4496, allocations: 10.56 kB / 382.1 MB, free: 15.98 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (success4,success3,success2,success1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0003106/0.4499, allocations: 148.5 kB / 382.3 MB, free: 15.87 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001574/0.4501, allocations: 65.58 kB / 382.3 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.354e-06/0.4501, allocations: 0.9375 kB / 382.3 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 6.097e-05/0.4502, allocations: 34.12 kB / 382.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001169/0.4503, allocations: 2.719 kB / 382.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002652/0.4506, allocations: 185.9 kB / 382.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001221/0.4507, allocations: 0.6836 MB / 383.2 MB, free: 15 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.711e-05/0.4507, allocations: 13.48 kB / 383.2 MB, free: 15 MB / 314.7 MB Notification: Performance of SimCode: time 1.312e-06/0.4508, allocations: 0 / 383.2 MB, free: 15 MB / 314.7 MB Notification: Performance of Templates: time 0.002246/0.453, allocations: 0.7096 MB / 383.9 MB, free: 14.95 MB / 314.7 MB