Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.269/2.269, allocations: 234.9 MB / 250.5 MB, free: 10.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004321/0.0004322, allocations: 8 kB / 314.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2788, allocations: 54.87 MB / 369.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1205/0.3994, allocations: 79.66 MB / 448.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000198/0.3997, allocations: 55.98 kB / 449 MB, free: 11.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006953/0.4066, allocations: 1.429 MB / 450.4 MB, free: 9.582 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.022e-06/0.4067, allocations: 0 / 450.4 MB, free: 9.582 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.69e-06/0.4067, allocations: 8 kB / 450.4 MB, free: 9.574 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.0004284/0.4072, allocations: 341.1 kB / 450.7 MB, free: 9.188 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.4072, allocations: 12.03 kB / 450.8 MB, free: 9.176 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.67e-05/0.4073, allocations: 7.891 kB / 450.8 MB, free: 9.168 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001559/0.4075, allocations: 163.1 kB / 450.9 MB, free: 8.969 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.4075, allocations: 0 / 450.9 MB, free: 8.969 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.4075, allocations: 0 / 450.9 MB, free: 8.969 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001099/0.4076, allocations: 33.7 kB / 451 MB, free: 8.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.4077, allocations: 4 kB / 451 MB, free: 8.926 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.4077, allocations: 0 / 451 MB, free: 8.926 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.062e-06/0.4077, allocations: 3.938 kB / 451 MB, free: 8.922 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.709e-05/0.4078, allocations: 3.953 kB / 451 MB, free: 8.918 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000217/0.408, allocations: 149.7 kB / 451.1 MB, free: 8.723 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.349e-05/0.4081, allocations: 14.58 kB / 451.1 MB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.077e-06/0.4081, allocations: 0 / 451.1 MB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.685e-05/0.4082, allocations: 64.36 kB / 451.2 MB, free: 8.621 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.455e-06/0.4082, allocations: 0 / 451.2 MB, free: 8.621 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002198/0.4084, allocations: 67.33 kB / 451.3 MB, free: 8.543 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.353e-05/0.4085, allocations: 81.11 kB / 451.3 MB, free: 8.445 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.83e-05/0.4086, allocations: 88.91 kB / 451.4 MB, free: 8.352 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.4086, allocations: 25.7 kB / 451.4 MB, free: 8.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.885e-05/0.4087, allocations: 154.5 kB / 451.6 MB, free: 8.168 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.298e-05/0.4088, allocations: 0 / 451.6 MB, free: 8.168 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.424e-06/0.4088, allocations: 0 / 451.6 MB, free: 8.168 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.409, allocations: 322.9 kB / 451.9 MB, free: 7.844 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.626e-05/0.4091, allocations: 4 kB / 451.9 MB, free: 7.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.036e-05/0.4091, allocations: 2.094 kB / 451.9 MB, free: 7.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.392e-05/0.4091, allocations: 25.7 kB / 451.9 MB, free: 7.809 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.957e-06/0.4092, allocations: 0 / 451.9 MB, free: 7.809 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001743/0.4093, allocations: 67.33 kB / 452 MB, free: 7.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.132e-05/0.4094, allocations: 29.7 kB / 452 MB, free: 7.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.405e-06/0.4095, allocations: 4 kB / 452 MB, free: 7.691 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.4095, allocations: 96 / 452 MB, free: 7.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.51e-06/0.4095, allocations: 4 kB / 452 MB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.82e-06/0.4095, allocations: 0 / 452 MB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.217e-05/0.4096, allocations: 0 / 452 MB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.4096, allocations: 0 / 452 MB, free: 7.688 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 0.0001822/0.4098, allocations: 151.4 kB / 452.2 MB, free: 7.523 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.128e-05/0.4099, allocations: 0 / 452.2 MB, free: 7.523 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.852e-05/0.4099, allocations: 7.062 kB / 452.2 MB, free: 7.516 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.4099, allocations: 0 / 452.2 MB, free: 7.516 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.94e-06/0.4099, allocations: 4 kB / 452.2 MB, free: 7.512 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.577e-06/0.41, allocations: 8 kB / 452.2 MB, free: 7.504 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001879/0.4102, allocations: 145.6 kB / 452.4 MB, free: 7.312 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.143e-06/0.4102, allocations: 3.984 kB / 452.4 MB, free: 7.309 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.054e-06/0.4102, allocations: 0 / 452.4 MB, free: 7.309 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.622e-06/0.4102, allocations: 0 / 452.4 MB, free: 7.309 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.301e-06/0.4102, allocations: 0 / 452.4 MB, free: 7.309 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.378e-06/0.4103, allocations: 4 kB / 452.4 MB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.171e-06/0.4103, allocations: 0 / 452.4 MB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001842/0.4105, allocations: 98.72 kB / 452.5 MB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.188e-05/0.4105, allocations: 77.11 kB / 452.5 MB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.063e-05/0.4106, allocations: 4 kB / 452.5 MB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.008e-05/0.4106, allocations: 0 / 452.5 MB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.02e-05/0.4107, allocations: 0 / 452.5 MB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.035e-06/0.4107, allocations: 0 / 452.5 MB, free: 7.086 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.911e-05/0.4107, allocations: 75.28 kB / 452.6 MB, free: 7.012 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.06e-07/0.4108, allocations: 0 / 452.6 MB, free: 7.012 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005323/0.4113, allocations: 24 kB / 452.6 MB, free: 6.988 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.0007619/0.4121, allocations: 208.9 kB / 452.8 MB, free: 6.805 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001404/0.4122, allocations: 59.39 kB / 452.9 MB, free: 6.734 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.658e-06/0.4123, allocations: 0 / 452.9 MB, free: 6.734 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.842e-05/0.4124, allocations: 59.34 kB / 453 MB, free: 6.664 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001636/0.4125, allocations: 6.969 kB / 453 MB, free: 6.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002607/0.4128, allocations: 108.4 kB / 453.1 MB, free: 6.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004413/0.4133, allocations: 0.6809 MB / 453.7 MB, free: 5.812 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.498e-05/0.4133, allocations: 11.38 kB / 453.8 MB, free: 5.801 MB / 378.7 MB Notification: Performance of SimCode: time 1.904e-06/0.4134, allocations: 4.125 kB / 453.8 MB, free: 5.797 MB / 378.7 MB Notification: Performance of Templates: time 0.003823/0.4172, allocations: 0.7548 MB / 454.5 MB, free: 5.043 MB / 378.7 MB