Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.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.196/2.196, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003668/0.000367, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09436/0.09476, allocations: 44.5 MB / 309 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4014/0.4963, allocations: 69.79 MB / 378.7 MB, free: 14.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000225/0.4966, allocations: 62.17 kB / 378.8 MB, free: 14.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002594/0.4992, allocations: 0.8221 MB / 379.6 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4992, allocations: 0 / 379.6 MB, free: 14.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.709e-06/0.4992, allocations: 4.812 kB / 379.6 MB, free: 14.46 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.0003135/0.4996, allocations: 333.9 kB / 380 MB, free: 14.11 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.4996, allocations: 14.09 kB / 380 MB, free: 14.1 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.881e-05/0.4997, allocations: 1.703 kB / 380 MB, free: 14.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.598e-05/0.4998, allocations: 170.6 kB / 380.1 MB, free: 13.9 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.4998, allocations: 5.484 kB / 380.1 MB, free: 13.9 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.243e-05/0.4998, allocations: 2.828 kB / 380.1 MB, free: 13.9 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002242/0.5001, allocations: 98.16 kB / 380.2 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.5001, allocations: 5.016 kB / 380.2 MB, free: 13.83 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.5001, allocations: 6.906 kB / 380.3 MB, free: 13.83 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.5001, allocations: 1.125 kB / 380.3 MB, free: 13.83 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001096/0.5003, allocations: 40.92 kB / 380.3 MB, free: 13.83 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001884/0.5005, allocations: 185.5 kB / 380.5 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/0.5006, allocations: 108 kB / 380.6 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.209e-05/0.5006, allocations: 4.938 kB / 380.6 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.5007, allocations: 32.77 kB / 380.6 MB, free: 13.47 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 1.913e-06/0.5007, allocations: 0 / 380.6 MB, free: 13.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0005785/0.5013, allocations: 216.4 kB / 380.8 MB, free: 13.43 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.5013, allocations: 133.8 kB / 381 MB, free: 13.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.711e-05/0.5015, allocations: 114.9 kB / 381.1 MB, free: 13.17 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.5015, allocations: 25.7 kB / 381.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.369e-05/0.5015, allocations: 155.1 kB / 381.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.128e-05/0.5016, allocations: 10.34 kB / 381.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.435e-06/0.5016, allocations: 0 / 381.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.655e-05/0.5017, allocations: 317.3 kB / 381.6 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.224e-05/0.5018, allocations: 38.91 kB / 381.6 MB, free: 12.67 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.5019, allocations: 59.5 kB / 381.7 MB, free: 12.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.502, allocations: 36.36 kB / 381.7 MB, free: 12.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.502, allocations: 1.469 kB / 381.7 MB, free: 12.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002828/0.5023, allocations: 133.8 kB / 381.8 MB, free: 12.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.5023, allocations: 8.125 kB / 381.8 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.5023, allocations: 2.75 kB / 381.8 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.5024, allocations: 5.312 kB / 381.9 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.241e-05/0.5024, allocations: 3.688 kB / 381.9 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.136e-06/0.5024, allocations: 2.844 kB / 381.9 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.171e-05/0.5025, allocations: 1.406 kB / 381.9 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.691e-05/0.5025, allocations: 7.438 kB / 381.9 MB, free: 12.59 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 8.707e-05/0.5026, allocations: 129.1 kB / 382 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.734e-05/0.5027, allocations: 11.44 kB / 382 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.276e-05/0.5027, allocations: 7.75 kB / 382 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.5027, allocations: 1.406 kB / 382 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.5027, allocations: 4.469 kB / 382 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.5027, allocations: 0 / 382 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.5029, allocations: 158.8 kB / 382.2 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.5029, allocations: 5.031 kB / 382.2 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.216e-06/0.5029, allocations: 2.766 kB / 382.2 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.5029, allocations: 5.172 kB / 382.2 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.5029, allocations: 8.797 kB / 382.2 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.5029, allocations: 5.344 kB / 382.2 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5029, allocations: 1.469 kB / 382.2 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003821/0.5033, allocations: 201.1 kB / 382.4 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.753e-05/0.5034, allocations: 88.8 kB / 382.5 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.881e-05/0.5034, allocations: 10.91 kB / 382.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.374e-05/0.5035, allocations: 2.219 kB / 382.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.347e-05/0.5035, allocations: 7.062 kB / 382.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.62e-05/0.5035, allocations: 8.422 kB / 382.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.751e-05/0.5036, allocations: 90.25 kB / 382.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5036, allocations: 0 / 382.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002634/0.5039, allocations: 10.78 kB / 382.6 MB, free: 11.97 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.0003304/0.5042, allocations: 130.7 kB / 382.7 MB, free: 11.88 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000208/0.5044, allocations: 65.61 kB / 382.8 MB, free: 11.87 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5045, allocations: 0 / 382.8 MB, free: 11.87 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 6.794e-05/0.5045, allocations: 29.67 kB / 382.8 MB, free: 11.87 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.5047, allocations: 15.34 kB / 382.8 MB, free: 11.86 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003024/0.505, allocations: 180.7 kB / 383 MB, free: 11.7 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001345/0.5051, allocations: 0.6845 MB / 383.7 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.304e-05/0.5052, allocations: 15.81 kB / 383.7 MB, free: 11 MB / 314.7 MB Notification: Performance of SimCode: time 1.483e-06/0.5052, allocations: 0 / 383.7 MB, free: 11 MB / 314.7 MB Notification: Performance of Templates: time 0.002706/0.5079, allocations: 0.7037 MB / 384.4 MB, free: 10.95 MB / 314.7 MB