Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestWriteFile.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadModel(ModelicaTest): time 2.186/2.186, allocations: 234.9 MB / 251.1 MB, free: 9.695 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000418/0.0004181, allocations: 8 kB / 314.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.35, allocations: 54.86 MB / 369.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1368/0.4868, allocations: 79.63 MB / 449.4 MB, free: 13.05 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002364/0.4871, allocations: 63.97 kB / 449.5 MB, free: 12.99 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005381/0.4925, allocations: 1.433 MB / 450.9 MB, free: 11.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4925, allocations: 0 / 450.9 MB, free: 11.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.4926, allocations: 4 kB / 450.9 MB, free: 11.55 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003273/0.4929, allocations: 349.6 kB / 451.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.493, allocations: 8.031 kB / 451.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.247e-05/0.493, allocations: 11.83 kB / 451.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.4931, allocations: 163.1 kB / 451.4 MB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.4931, allocations: 0 / 451.4 MB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.292e-05/0.4932, allocations: 0 / 451.4 MB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.641e-05/0.4933, allocations: 29.69 kB / 451.5 MB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.4933, allocations: 4 kB / 451.5 MB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.4933, allocations: 4 kB / 451.5 MB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.4933, allocations: 0 / 451.5 MB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.016e-05/0.4933, allocations: 3.953 kB / 451.5 MB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001461/0.4935, allocations: 145.7 kB / 451.6 MB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.591e-05/0.4935, allocations: 22.55 kB / 451.6 MB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.126e-06/0.4936, allocations: 0 / 451.6 MB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.807e-05/0.4936, allocations: 56.27 kB / 451.7 MB, free: 10.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.403e-06/0.4936, allocations: 4 kB / 451.7 MB, free: 10.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001723/0.4938, allocations: 67.45 kB / 451.8 MB, free: 10.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/0.4939, allocations: 77.11 kB / 451.8 MB, free: 10.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.521e-05/0.4939, allocations: 97.77 kB / 451.9 MB, free: 10.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.494, allocations: 25.7 kB / 452 MB, free: 10.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.048e-05/0.494, allocations: 154.5 kB / 452.1 MB, free: 10.13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.477e-05/0.4941, allocations: 0 / 452.1 MB, free: 10.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.434e-06/0.4941, allocations: 0 / 452.1 MB, free: 10.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.4942, allocations: 325.1 kB / 452.4 MB, free: 9.805 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.012e-05/0.4942, allocations: 0 / 452.4 MB, free: 9.805 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.179e-05/0.4943, allocations: 8 kB / 452.4 MB, free: 9.797 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.574e-05/0.4943, allocations: 25.7 kB / 452.5 MB, free: 9.766 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4943, allocations: 0 / 452.5 MB, free: 9.766 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.444e-05/0.4944, allocations: 59.41 kB / 452.5 MB, free: 9.695 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.506e-05/0.4945, allocations: 29.7 kB / 452.6 MB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.4945, allocations: 3.984 kB / 452.6 MB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.4945, allocations: 4 kB / 452.6 MB, free: 9.652 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.303e-06/0.4945, allocations: 4.094 kB / 452.6 MB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.4945, allocations: 0 / 452.6 MB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.713e-05/0.4945, allocations: 0 / 452.6 MB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.4946, allocations: 7.922 kB / 452.6 MB, free: 9.641 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 9.89e-05/0.4947, allocations: 139.5 kB / 452.7 MB, free: 9.488 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.281e-05/0.4947, allocations: 3.938 kB / 452.7 MB, free: 9.484 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.451e-05/0.4947, allocations: 11.06 kB / 452.7 MB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.4947, allocations: 0 / 452.7 MB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.4947, allocations: 0 / 452.7 MB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.4948, allocations: 4 kB / 452.7 MB, free: 9.469 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.4949, allocations: 153.6 kB / 452.9 MB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.4949, allocations: 0 / 452.9 MB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.82e-07/0.4949, allocations: 0 / 452.9 MB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-06/0.4949, allocations: 0 / 452.9 MB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.4949, allocations: 4 kB / 452.9 MB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.4949, allocations: 0 / 452.9 MB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4949, allocations: 0 / 452.9 MB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001235/0.4951, allocations: 98.78 kB / 453 MB, free: 9.145 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.058e-05/0.4951, allocations: 77.11 kB / 453.1 MB, free: 9.051 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.4952, allocations: 4 kB / 453.1 MB, free: 9.047 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.137e-05/0.4952, allocations: 0 / 453.1 MB, free: 9.047 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.495e-05/0.4952, allocations: 3.984 kB / 453.1 MB, free: 9.043 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-06/0.4952, allocations: 3.984 kB / 453.1 MB, free: 9.039 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.319e-05/0.4953, allocations: 75.28 kB / 453.1 MB, free: 8.965 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4953, allocations: 3.938 kB / 453.1 MB, free: 8.961 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000282/0.4956, allocations: 20 kB / 453.2 MB, free: 8.941 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0005332/0.4961, allocations: 204.3 kB / 453.4 MB, free: 8.773 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001033/0.4962, allocations: 59.41 kB / 453.4 MB, free: 8.703 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4962, allocations: 0 / 453.4 MB, free: 8.703 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.096e-05/0.4963, allocations: 55.41 kB / 453.5 MB, free: 8.637 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.569e-05/0.4964, allocations: 6.203 kB / 453.5 MB, free: 8.633 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002016/0.4966, allocations: 112.4 kB / 453.6 MB, free: 8.488 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002657/0.4969, allocations: 0.6692 MB / 454.3 MB, free: 7.793 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.447e-05/0.4969, allocations: 11.44 kB / 454.3 MB, free: 7.781 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4969, allocations: 4.062 kB / 454.3 MB, free: 7.777 MB / 378.7 MB Notification: Performance of Templates: time 0.002919/0.4998, allocations: 0.7703 MB / 455 MB, free: 7.008 MB / 378.7 MB