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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.167/2.167, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.347e-05/1.362e-05, allocations: 0 / 303.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2758, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1198/0.3956, allocations: 78.89 MB / 436.9 MB, free: 15.95 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/0.3959, allocations: 55.97 kB / 437 MB, free: 15.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005186/0.4011, allocations: 1.421 MB / 438.4 MB, free: 14.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.882e-06/0.4011, allocations: 0 / 438.4 MB, free: 14.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.62e-06/0.4012, allocations: 0 / 438.4 MB, free: 14.47 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.0003204/0.4015, allocations: 345 kB / 438.7 MB, free: 14.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.4015, allocations: 8.031 kB / 438.7 MB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.506e-05/0.4016, allocations: 7.953 kB / 438.8 MB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.4017, allocations: 163.1 kB / 438.9 MB, free: 13.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.4017, allocations: 3.984 kB / 438.9 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.823e-06/0.4018, allocations: 4 kB / 438.9 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.224e-05/0.4018, allocations: 0 / 438.9 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.136e-05/0.4019, allocations: 37.64 kB / 439 MB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.911e-06/0.4019, allocations: 0 / 439 MB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.846e-06/0.4019, allocations: 0 / 439 MB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.4019, allocations: 7.938 kB / 439 MB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001294/0.4021, allocations: 126.2 kB / 439.1 MB, free: 13.65 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.328e-05/0.4021, allocations: 18.61 kB / 439.1 MB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.46e-05/0.4022, allocations: 12.8 kB / 439.1 MB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.885e-06/0.4022, allocations: 0 / 439.1 MB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.28e-05/0.4022, allocations: 56.27 kB / 439.2 MB, free: 13.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.185e-06/0.4023, allocations: 0 / 439.2 MB, free: 13.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001945/0.4025, allocations: 45.69 kB / 439.2 MB, free: 13.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.4025, allocations: 77.11 kB / 439.3 MB, free: 13.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.057e-05/0.4026, allocations: 88.91 kB / 439.4 MB, free: 13.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.4026, allocations: 29.73 kB / 439.4 MB, free: 13.26 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.075e-05/0.4027, allocations: 150.6 kB / 439.6 MB, free: 13.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.294e-05/0.4027, allocations: 4 kB / 439.6 MB, free: 13.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.808e-06/0.4027, allocations: 0 / 439.6 MB, free: 13.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.4029, allocations: 314.8 kB / 439.9 MB, free: 12.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.673e-06/0.4029, allocations: 0 / 439.9 MB, free: 12.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.949e-06/0.4029, allocations: 0 / 439.9 MB, free: 12.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.724e-05/0.403, allocations: 7.984 kB / 439.9 MB, free: 12.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.282e-06/0.403, allocations: 0 / 439.9 MB, free: 12.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001028/0.4031, allocations: 41.77 kB / 439.9 MB, free: 12.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.14e-05/0.4032, allocations: 33.69 kB / 439.9 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.822e-06/0.4032, allocations: 0 / 439.9 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.4032, allocations: 0 / 439.9 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.935e-06/0.4032, allocations: 0 / 439.9 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.384e-06/0.4032, allocations: 3.938 kB / 440 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.595e-05/0.4033, allocations: 4 kB / 440 MB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.478e-06/0.4033, allocations: 0 / 440 MB, free: 12.69 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.0001041/0.4034, allocations: 132.7 kB / 440.1 MB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.396e-05/0.4034, allocations: 8.031 kB / 440.1 MB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.087e-05/0.4035, allocations: 7.703 kB / 440.1 MB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.243e-06/0.4035, allocations: 0 / 440.1 MB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.608e-06/0.4035, allocations: 0 / 440.1 MB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.89e-06/0.4035, allocations: 0 / 440.1 MB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001028/0.4036, allocations: 126.2 kB / 440.2 MB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.88e-06/0.4036, allocations: 0 / 440.2 MB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.406e-06/0.4036, allocations: 7.953 kB / 440.2 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.711e-06/0.4036, allocations: 0 / 440.2 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.598e-06/0.4037, allocations: 0 / 440.2 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.086e-06/0.4037, allocations: 4 kB / 440.2 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.4037, allocations: 3.938 kB / 440.2 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001338/0.4038, allocations: 69.11 kB / 440.3 MB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.46e-05/0.4039, allocations: 77.11 kB / 440.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.4039, allocations: 3.953 kB / 440.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.22e-05/0.4039, allocations: 3.938 kB / 440.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.929e-05/0.404, allocations: 0 / 440.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.493e-06/0.404, allocations: 11.92 kB / 440.4 MB, free: 12.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.588e-05/0.404, allocations: 79.31 kB / 440.5 MB, free: 12.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.73e-07/0.404, allocations: 0 / 440.5 MB, free: 12.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002892/0.4043, allocations: 20 kB / 440.5 MB, free: 12.07 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.000497/0.4049, allocations: 209 kB / 440.7 MB, free: 11.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.303e-05/0.405, allocations: 55.41 kB / 440.8 MB, free: 11.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.497e-06/0.405, allocations: 0 / 440.8 MB, free: 11.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.839e-05/0.405, allocations: 59.47 kB / 440.8 MB, free: 11.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.258e-05/0.4051, allocations: 0 / 440.8 MB, free: 11.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001631/0.4053, allocations: 80.44 kB / 440.9 MB, free: 11.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.4057, allocations: 0.6729 MB / 441.6 MB, free: 10.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.248e-05/0.4057, allocations: 7.438 kB / 441.6 MB, free: 10.92 MB / 378.7 MB Notification: Performance of SimCode: time 1.368e-06/0.4057, allocations: 0 / 441.6 MB, free: 10.92 MB / 378.7 MB Notification: Performance of Templates: time 0.002455/0.4082, allocations: 0.7687 MB / 442.3 MB, free: 10.15 MB / 378.7 MB