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 1.993/1.993, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007291/0.0007297, allocations: 8 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09109/0.09186, allocations: 44.5 MB / 308.3 MB, free: 1.055 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.00053/0.09244, allocations: 208.7 kB / 308.5 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002081/0.09266, allocations: 55.77 kB / 308.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.884e-05/0.09271, allocations: 8 kB / 308.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.461e-05/0.09274, allocations: 0 / 308.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.943e-05/0.09281, allocations: 11.98 kB / 308.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001235/0.09295, allocations: 15.97 kB / 308.6 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 4.763e-05/0.09301, allocations: 19.97 kB / 308.7 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.982e-05/0.09306, allocations: 0 / 308.7 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.211e-05/0.09311, allocations: 11.94 kB / 308.7 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.14e-05/0.09319, allocations: 27.89 kB / 308.7 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.099e-05/0.09321, allocations: 0 / 308.7 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.464e-05/0.09326, allocations: 4 kB / 308.7 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.116e-05/0.0933, allocations: 4 kB / 308.7 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.324e-05/0.09335, allocations: 37.7 kB / 308.7 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 7.208e-05/0.09343, allocations: 15.98 kB / 308.8 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.558e-06/0.09344, allocations: 3.938 kB / 308.8 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.242e-06/0.09345, allocations: 0 / 308.8 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.587e-06/0.09347, allocations: 0 / 308.8 MB, free: 0.6328 MB / 250.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.0003712/0.09385, allocations: 327.3 kB / 309.1 MB, free: 272 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.09389, allocations: 8.031 kB / 309.1 MB, free: 264 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.423e-05/0.09394, allocations: 8 kB / 309.1 MB, free: 256 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.09408, allocations: 167.3 kB / 309.3 MB, free: 48 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.09412, allocations: 8 kB / 309.3 MB, free: 40 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.09414, allocations: 0 / 309.3 MB, free: 40 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001806/0.09433, allocations: 89.09 kB / 309.3 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.75e-06/0.09435, allocations: 3.938 kB / 309.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.09437, allocations: 0 / 309.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.058e-06/0.09438, allocations: 0 / 309.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.246e-05/0.09445, allocations: 31.92 kB / 309.4 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002166/0.09468, allocations: 192.2 kB / 309.6 MB, free: 15.65 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.09483, allocations: 95.58 kB / 309.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.09486, allocations: 4 kB / 309.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.825e-05/0.0949, allocations: 38.62 kB / 309.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 7.79e-06/0.09492, allocations: 0 / 309.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003465/0.09528, allocations: 161.5 kB / 309.9 MB, free: 15.31 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.77e-05/0.09539, allocations: 137 kB / 310 MB, free: 15.14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.09552, allocations: 113.8 kB / 310.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.09556, allocations: 25.7 kB / 310.1 MB, free: 14.99 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.443e-05/0.09565, allocations: 154.6 kB / 310.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.249e-05/0.09568, allocations: 11.83 kB / 310.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.295e-06/0.0957, allocations: 4 kB / 310.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.09587, allocations: 310.8 kB / 310.6 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.701e-05/0.09593, allocations: 27.98 kB / 310.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.435e-05/0.096, allocations: 55.36 kB / 310.7 MB, free: 14.42 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.103e-05/0.09608, allocations: 27.98 kB / 310.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.566e-06/0.09609, allocations: 4 kB / 310.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001846/0.09629, allocations: 101.5 kB / 310.8 MB, free: 14.28 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.09632, allocations: 8 kB / 310.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.849e-06/0.09634, allocations: 4.125 kB / 310.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.09636, allocations: 0 / 310.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.332e-05/0.09639, allocations: 4 kB / 310.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.09641, allocations: 0 / 310.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.491e-05/0.09645, allocations: 4 kB / 310.8 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.09647, allocations: 0 / 310.8 MB, free: 14.26 MB / 266.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 0.0001128/0.09659, allocations: 121.8 kB / 311 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.238e-05/0.09662, allocations: 7.953 kB / 311 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.106e-05/0.09666, allocations: 11.52 kB / 311 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.786e-06/0.09667, allocations: 4 kB / 311 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.045e-06/0.09669, allocations: 4 kB / 311 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.078e-06/0.0967, allocations: 3.984 kB / 311 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001566/0.09687, allocations: 157.7 kB / 311.1 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.371e-06/0.09688, allocations: 0 / 311.1 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.023e-06/0.0969, allocations: 3.938 kB / 311.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.664e-06/0.09691, allocations: 8.203 kB / 311.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.922e-06/0.09693, allocations: 0 / 311.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.485e-06/0.09694, allocations: 8 kB / 311.2 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.09696, allocations: 0 / 311.2 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002558/0.09722, allocations: 167.7 kB / 311.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.784e-05/0.09729, allocations: 81.02 kB / 311.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.09733, allocations: 11.94 kB / 311.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.917e-05/0.09737, allocations: 4 kB / 311.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.865e-05/0.0974, allocations: 11.94 kB / 311.4 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.199e-06/0.09741, allocations: 0 / 311.4 MB, free: 13.56 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.357e-05/0.0975, allocations: 91.27 kB / 311.5 MB, free: 13.47 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.202e-06/0.09751, allocations: 0 / 311.5 MB, free: 13.47 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002702/0.09779, allocations: 11.94 kB / 311.5 MB, free: 13.46 MB / 266.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.0003333/0.09814, allocations: 137.2 kB / 311.7 MB, free: 13.33 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001605/0.09831, allocations: 67.91 kB / 311.7 MB, free: 13.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.828e-06/0.09833, allocations: 0 / 311.7 MB, free: 13.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.106e-05/0.0984, allocations: 31.92 kB / 311.8 MB, free: 13.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001196/0.09854, allocations: 7.984 kB / 311.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003245/0.09888, allocations: 187.7 kB / 312 MB, free: 13 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.09925, allocations: 0.6848 MB / 312.6 MB, free: 12.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.774e-05/0.0993, allocations: 11.44 kB / 312.6 MB, free: 12.28 MB / 266.7 MB Notification: Performance of SimCode: time 1.341e-06/0.09931, allocations: 0 / 312.6 MB, free: 12.28 MB / 266.7 MB Notification: Performance of Templates: time 0.002381/0.1017, allocations: 0.7104 MB / 313.4 MB, free: 11.57 MB / 266.7 MB