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.253/2.253, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.036e-05/3.062e-05, allocations: 0 / 309.7 MB, free: 1.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3937/0.3937, allocations: 54.86 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1225/0.5163, allocations: 79.56 MB / 444.1 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003676/0.5168, allocations: 59.97 kB / 444.2 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01007/0.5269, allocations: 1.423 MB / 445.6 MB, free: 15.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.504e-06/0.5269, allocations: 0 / 445.6 MB, free: 15.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.972e-06/0.527, allocations: 0 / 445.6 MB, free: 15.46 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.0005574/0.5275, allocations: 344.2 kB / 445.9 MB, free: 15.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.752e-05/0.5276, allocations: 12.69 kB / 445.9 MB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.692e-05/0.5277, allocations: 5.203 kB / 445.9 MB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002055/0.5279, allocations: 159.1 kB / 446.1 MB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.528, allocations: 4 kB / 446.1 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.837e-05/0.528, allocations: 0 / 446.1 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001402/0.5282, allocations: 33.69 kB / 446.1 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.5282, allocations: 3.5 kB / 446.1 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.5283, allocations: 0 / 446.1 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.5283, allocations: 3.984 kB / 446.1 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.292e-05/0.5284, allocations: 8.891 kB / 446.1 MB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003056/0.5287, allocations: 149.7 kB / 446.3 MB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.897e-05/0.5288, allocations: 22.52 kB / 446.3 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.719e-05/0.5288, allocations: 8.953 kB / 446.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.5289, allocations: 0 / 446.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.787e-05/0.529, allocations: 60.25 kB / 446.4 MB, free: 14.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 3.375e-06/0.529, allocations: 0 / 446.4 MB, free: 14.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002809/0.5293, allocations: 63.41 kB / 446.4 MB, free: 14.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.5295, allocations: 81.05 kB / 446.5 MB, free: 14.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.721e-05/0.5296, allocations: 89.03 kB / 446.6 MB, free: 14.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.041e-05/0.5296, allocations: 26.45 kB / 446.6 MB, free: 14.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.5298, allocations: 150.6 kB / 446.8 MB, free: 14.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.117e-05/0.5298, allocations: 4 kB / 446.8 MB, free: 14.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.019e-06/0.5299, allocations: 0 / 446.8 MB, free: 14.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002653/0.5301, allocations: 316.9 kB / 447.1 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.778e-05/0.5302, allocations: 0 / 447.1 MB, free: 13.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.296e-05/0.5302, allocations: 0 / 447.1 MB, free: 13.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.087e-05/0.5303, allocations: 37.75 kB / 447.1 MB, free: 13.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.682e-06/0.5304, allocations: 0.75 kB / 447.1 MB, free: 13.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0002014/0.5306, allocations: 63.41 kB / 447.2 MB, free: 13.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.851e-05/0.5307, allocations: 29.7 kB / 447.2 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.5307, allocations: 2.562 kB / 447.2 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.5307, allocations: 0 / 447.2 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.703e-06/0.5308, allocations: 0 / 447.2 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.646e-05/0.5308, allocations: 3.984 kB / 447.2 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.955e-05/0.5309, allocations: 7.938 kB / 447.2 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.5309, allocations: 1.125 kB / 447.2 MB, free: 13.57 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 () * 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.0001798/0.5311, allocations: 134.7 kB / 447.4 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.334e-05/0.5311, allocations: 0 / 447.4 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.315e-05/0.5312, allocations: 14.36 kB / 447.4 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.5312, allocations: 0 / 447.4 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.998e-06/0.5312, allocations: 0 / 447.4 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.604e-06/0.5313, allocations: 0 / 447.4 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002356/0.5315, allocations: 153.6 kB / 447.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.994e-06/0.5315, allocations: 0 / 447.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.232e-06/0.5316, allocations: 0 / 447.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.646e-06/0.5316, allocations: 8 kB / 447.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.5316, allocations: 0 / 447.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.365e-06/0.5316, allocations: 1.406 kB / 447.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.71e-06/0.5317, allocations: 0 / 447.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002461/0.5319, allocations: 94.78 kB / 447.6 MB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.519e-05/0.532, allocations: 77.11 kB / 447.7 MB, free: 13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.967e-05/0.5321, allocations: 1.75 kB / 447.7 MB, free: 13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.917e-05/0.5322, allocations: 0 / 447.7 MB, free: 13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.616e-05/0.5322, allocations: 11.97 kB / 447.7 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.065e-06/0.5322, allocations: 0 / 447.7 MB, free: 12.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.077e-05/0.5323, allocations: 75.28 kB / 447.8 MB, free: 12.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.116e-06/0.5324, allocations: 0 / 447.8 MB, free: 12.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007026/0.5331, allocations: 19.98 kB / 447.8 MB, free: 12.89 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) * 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.0009347/0.534, allocations: 205 kB / 448 MB, free: 12.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001809/0.5343, allocations: 67.39 kB / 448.1 MB, free: 12.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.665e-06/0.5343, allocations: 0 / 448.1 MB, free: 12.65 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.834e-05/0.5344, allocations: 59.47 kB / 448.1 MB, free: 12.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/0.5346, allocations: 7.891 kB / 448.1 MB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002765/0.5349, allocations: 70.7 kB / 448.2 MB, free: 12.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005828/0.5356, allocations: 0.6809 MB / 448.9 MB, free: 11.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.007e-05/0.5356, allocations: 7.438 kB / 448.9 MB, free: 11.76 MB / 378.7 MB Notification: Performance of SimCode: time 2.387e-06/0.5356, allocations: 0 / 448.9 MB, free: 11.76 MB / 378.7 MB Notification: Performance of Templates: time 0.004727/0.5404, allocations: 0.7638 MB / 449.7 MB, free: 11 MB / 378.7 MB