Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadModel(Modelica): time 2.535/2.535, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005257/0.0005258, allocations: 16 kB / 264.5 MB, free: 12.96 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1281, allocations: 44.5 MB / 309 MB, free: 408 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4989/0.6271, allocations: 69.79 MB / 378.8 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.6274, allocations: 65.42 kB / 378.9 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002541/0.63, allocations: 0.8291 MB / 379.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.63, allocations: 3.938 kB / 379.7 MB, free: 15.13 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.483e-06/0.63, allocations: 0 / 379.7 MB, free: 15.13 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.0003746/0.6304, allocations: 335.6 kB / 380 MB, free: 14.78 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.6305, allocations: 13.56 kB / 380 MB, free: 14.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.642e-05/0.6306, allocations: 3.297 kB / 380.1 MB, free: 14.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.36e-05/0.6306, allocations: 168.8 kB / 380.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.6307, allocations: 2.578 kB / 380.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.151e-05/0.6307, allocations: 2.594 kB / 380.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002223/0.6309, allocations: 104.9 kB / 380.3 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.631, allocations: 0.9844 kB / 380.3 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.631, allocations: 6.203 kB / 380.3 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.631, allocations: 0.9688 kB / 380.3 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001061/0.6311, allocations: 42.05 kB / 380.4 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001805/0.6313, allocations: 186 kB / 380.6 MB, free: 14.28 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/0.6315, allocations: 113.2 kB / 380.7 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/0.6315, allocations: 5.031 kB / 380.7 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.6315, allocations: 37.92 kB / 380.7 MB, free: 14.14 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 2.214e-06/0.6316, allocations: 3.062 kB / 380.7 MB, free: 14.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0005553/0.6321, allocations: 214.2 kB / 380.9 MB, free: 14.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.016e-05/0.6322, allocations: 129.7 kB / 381 MB, free: 13.94 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.548e-05/0.6323, allocations: 111.2 kB / 381.2 MB, free: 13.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.6323, allocations: 27.02 kB / 381.2 MB, free: 13.81 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.215e-05/0.6324, allocations: 85.05 kB / 381.3 MB, free: 13.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.756e-05/0.6324, allocations: 5.281 kB / 381.3 MB, free: 13.72 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.062e-05/0.6324, allocations: 3.406 kB / 381.3 MB, free: 13.72 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.244e-05/0.6325, allocations: 320.4 kB / 381.6 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.348e-05/0.6326, allocations: 35.78 kB / 381.6 MB, free: 13.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.6327, allocations: 61.73 kB / 381.7 MB, free: 13.38 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001066/0.6328, allocations: 41.36 kB / 381.7 MB, free: 13.37 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.6328, allocations: 0.9062 kB / 381.7 MB, free: 13.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002757/0.6331, allocations: 134.9 kB / 381.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.6332, allocations: 5.531 kB / 381.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.6332, allocations: 1.812 kB / 381.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.6332, allocations: 0 / 381.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.126e-05/0.6332, allocations: 7.797 kB / 381.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.6333, allocations: 1.094 kB / 381.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.375e-05/0.6333, allocations: 7.297 kB / 381.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.541e-05/0.6334, allocations: 12.94 kB / 381.9 MB, free: 13.32 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.411e-05/0.6334, allocations: 120.4 kB / 382 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.683e-05/0.6335, allocations: 11.75 kB / 382 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.292e-05/0.6335, allocations: 11.45 kB / 382 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.6335, allocations: 0.9688 kB / 382 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.6335, allocations: 4.969 kB / 382 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.6336, allocations: 3.531 kB / 382 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001089/0.6337, allocations: 157.5 kB / 382.2 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.6337, allocations: 5.031 kB / 382.2 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.665e-06/0.6337, allocations: 1.062 kB / 382.2 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.82e-06/0.6337, allocations: 6.109 kB / 382.2 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.6337, allocations: 8.578 kB / 382.2 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.6338, allocations: 0.9688 kB / 382.2 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.6338, allocations: 2.875 kB / 382.2 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003747/0.6342, allocations: 201.7 kB / 382.4 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.951e-05/0.6342, allocations: 88.58 kB / 382.5 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.776e-05/0.6342, allocations: 6.078 kB / 382.5 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.888e-05/0.6343, allocations: 3.531 kB / 382.5 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.76e-05/0.6343, allocations: 2.422 kB / 382.5 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.6344, allocations: 11 kB / 382.5 MB, free: 12.79 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.89e-05/0.6344, allocations: 91.52 kB / 382.6 MB, free: 12.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6344, allocations: 0 / 382.6 MB, free: 12.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000273/0.6347, allocations: 14.14 kB / 382.6 MB, free: 12.71 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.000393/0.6351, allocations: 132.5 kB / 382.8 MB, free: 12.61 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000192/0.6353, allocations: 66.34 kB / 382.8 MB, free: 12.61 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.6353, allocations: 0.8125 kB / 382.8 MB, free: 12.61 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.22e-05/0.6354, allocations: 33.98 kB / 382.9 MB, free: 12.6 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.6356, allocations: 8.875 kB / 382.9 MB, free: 12.6 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003067/0.6359, allocations: 155.7 kB / 383 MB, free: 12.46 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001369/0.636, allocations: 0.6826 MB / 383.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.216e-05/0.6361, allocations: 3.469 kB / 383.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.179e-05/0.6361, allocations: 13.22 kB / 383.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of SimCode: time 9.12e-07/0.6361, allocations: 7.938 kB / 383.7 MB, free: 11.76 MB / 314.7 MB Notification: Performance of Templates: time 0.003359/0.6395, allocations: 0.5544 MB / 384.3 MB, free: 11.7 MB / 314.7 MB