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.182/2.182, allocations: 234.9 MB / 250.5 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004541/0.0004543, allocations: 12 kB / 314.3 MB, free: 10.58 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2767, allocations: 54.88 MB / 369.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005647/0.2773, allocations: 212.5 kB / 369.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005749/0.2779, allocations: 193.6 kB / 369.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.44e-05/0.2779, allocations: 3.938 kB / 369.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.294e-05/0.2779, allocations: 4 kB / 369.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.218e-06/0.278, allocations: 0 / 369.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002247/0.2782, allocations: 31.91 kB / 369.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.605e-05/0.2782, allocations: 0 / 369.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.83e-05/0.2783, allocations: 0 / 369.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.728e-05/0.2783, allocations: 3.938 kB / 369.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.484e-05/0.2783, allocations: 11.98 kB / 369.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.786e-06/0.2784, allocations: 0 / 369.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001187/0.2785, allocations: 39.95 kB / 369.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.431e-06/0.2785, allocations: 0 / 369.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.917e-05/0.2786, allocations: 29.7 kB / 369.7 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.243e-05/0.2787, allocations: 31.89 kB / 369.7 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.401e-06/0.2787, allocations: 0 / 369.7 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.835e-06/0.2787, allocations: 0 / 369.7 MB, free: 10.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.47e-06/0.2787, allocations: 0 / 369.7 MB, free: 10.28 MB / 298.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.0003494/0.2791, allocations: 349.1 kB / 370.1 MB, free: 9.887 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.2791, allocations: 12.03 kB / 370.1 MB, free: 9.875 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.551e-05/0.2791, allocations: 7.953 kB / 370.1 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.2793, allocations: 159.1 kB / 370.2 MB, free: 9.672 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.2793, allocations: 0 / 370.2 MB, free: 9.672 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.2793, allocations: 4 kB / 370.3 MB, free: 9.668 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.99e-05/0.2794, allocations: 29.69 kB / 370.3 MB, free: 9.633 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.2794, allocations: 3.938 kB / 370.3 MB, free: 9.629 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.967e-06/0.2795, allocations: 0 / 370.3 MB, free: 9.629 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.687e-06/0.2795, allocations: 0 / 370.3 MB, free: 9.629 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.013e-05/0.2795, allocations: 11.95 kB / 370.3 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001603/0.2797, allocations: 145.7 kB / 370.4 MB, free: 9.426 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.383e-05/0.2797, allocations: 22.61 kB / 370.5 MB, free: 9.395 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.857e-06/0.2798, allocations: 0 / 370.5 MB, free: 9.395 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.395e-05/0.2798, allocations: 56.27 kB / 370.5 MB, free: 9.324 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.685e-06/0.2798, allocations: 0 / 370.5 MB, free: 9.324 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001812/0.28, allocations: 71.3 kB / 370.6 MB, free: 9.242 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/0.2801, allocations: 81.23 kB / 370.7 MB, free: 9.145 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.933e-05/0.2802, allocations: 89.86 kB / 370.8 MB, free: 9.047 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.2802, allocations: 29.64 kB / 370.8 MB, free: 9.012 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.447e-05/0.2803, allocations: 154.6 kB / 370.9 MB, free: 8.859 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.567e-05/0.2803, allocations: 4 kB / 370.9 MB, free: 8.855 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.543e-06/0.2803, allocations: 0 / 370.9 MB, free: 8.855 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.2805, allocations: 314.8 kB / 371.2 MB, free: 8.539 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.386e-05/0.2805, allocations: 7.922 kB / 371.2 MB, free: 8.531 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.465e-06/0.2805, allocations: 4 kB / 371.3 MB, free: 8.527 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.111e-05/0.2806, allocations: 29.7 kB / 371.3 MB, free: 8.492 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2806, allocations: 0 / 371.3 MB, free: 8.492 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001045/0.2807, allocations: 63.34 kB / 371.3 MB, free: 8.418 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.909e-05/0.2808, allocations: 29.7 kB / 371.4 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.859e-06/0.2808, allocations: 0 / 371.4 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.2808, allocations: 3.984 kB / 371.4 MB, free: 8.379 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.568e-06/0.2808, allocations: 0 / 371.4 MB, free: 8.379 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.461e-06/0.2808, allocations: 0 / 371.4 MB, free: 8.379 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.438e-05/0.2809, allocations: 8.094 kB / 371.4 MB, free: 8.371 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.392e-06/0.2809, allocations: 4 kB / 371.4 MB, free: 8.367 MB / 298.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.0001136/0.281, allocations: 135.5 kB / 371.5 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.308e-05/0.281, allocations: 4 kB / 371.5 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.508e-06/0.2811, allocations: 3.125 kB / 371.5 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.913e-06/0.2811, allocations: 3.984 kB / 371.5 MB, free: 8.211 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.471e-06/0.2811, allocations: 0 / 371.5 MB, free: 8.211 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2811, allocations: 0 / 371.5 MB, free: 8.211 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001299/0.2812, allocations: 149.6 kB / 371.7 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.951e-06/0.2812, allocations: 0 / 371.7 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.345e-06/0.2813, allocations: 8 kB / 371.7 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.492e-06/0.2813, allocations: 0 / 371.7 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.112e-06/0.2813, allocations: 0 / 371.7 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.968e-06/0.2813, allocations: 0 / 371.7 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.851e-06/0.2813, allocations: 0 / 371.7 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001342/0.2814, allocations: 98.72 kB / 371.8 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.724e-05/0.2815, allocations: 77.11 kB / 371.9 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.2815, allocations: 32 / 371.9 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.251e-05/0.2816, allocations: 4 kB / 371.9 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.576e-05/0.2816, allocations: 4 kB / 371.9 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.2816, allocations: 4 kB / 371.9 MB, free: 7.781 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.002e-05/0.2817, allocations: 83.2 kB / 372 MB, free: 7.699 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.36e-07/0.2817, allocations: 0 / 372 MB, free: 7.699 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002836/0.282, allocations: 12 kB / 372 MB, free: 7.688 MB / 298.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.000509/0.2825, allocations: 211.9 kB / 372.2 MB, free: 7.512 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001011/0.2826, allocations: 55.41 kB / 372.2 MB, free: 7.445 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.176e-06/0.2826, allocations: 4.062 kB / 372.2 MB, free: 7.441 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.557e-05/0.2827, allocations: 63.34 kB / 372.3 MB, free: 7.367 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.938e-05/0.2828, allocations: 7.953 kB / 372.3 MB, free: 7.359 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001987/0.283, allocations: 106.6 kB / 372.4 MB, free: 7.223 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.2834, allocations: 0.6731 MB / 373.1 MB, free: 6.523 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.171e-05/0.2834, allocations: 7.438 kB / 373.1 MB, free: 6.516 MB / 298.7 MB Notification: Performance of SimCode: time 1.259e-06/0.2834, allocations: 0 / 373.1 MB, free: 6.516 MB / 298.7 MB Notification: Performance of Templates: time 0.002611/0.286, allocations: 0.7729 MB / 373.9 MB, free: 5.742 MB / 298.7 MB