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.TestReadFile.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadModel(ModelicaTest): time 2.245/2.245, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005078/0.0005081, allocations: 12 kB / 314.3 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2826, allocations: 54.86 MB / 369.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0006309/0.2833, allocations: 220.5 kB / 369.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001238/0.2846, allocations: 0.7246 MB / 370.1 MB, free: 9.797 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.759e-05/0.2846, allocations: 0 / 370.1 MB, free: 9.797 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.21e-05/0.2847, allocations: 3.938 kB / 370.1 MB, free: 9.793 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000116/0.2848, allocations: 4 kB / 370.1 MB, free: 9.789 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002515/0.285, allocations: 43.88 kB / 370.2 MB, free: 9.746 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.409e-05/0.2851, allocations: 4 kB / 370.2 MB, free: 9.742 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.956e-05/0.2851, allocations: 0 / 370.2 MB, free: 9.742 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.774e-05/0.2852, allocations: 7.922 kB / 370.2 MB, free: 9.734 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.956e-05/0.2853, allocations: 4 kB / 370.2 MB, free: 9.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.555e-06/0.2853, allocations: 4 kB / 370.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000129/0.2854, allocations: 39.97 kB / 370.2 MB, free: 9.688 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.928e-06/0.2855, allocations: 4 kB / 370.2 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.874e-05/0.2855, allocations: 25.7 kB / 370.2 MB, free: 9.652 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001042/0.2856, allocations: 39.88 kB / 370.3 MB, free: 9.613 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.814e-06/0.2856, allocations: 0 / 370.3 MB, free: 9.613 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.042e-06/0.2856, allocations: 0 / 370.3 MB, free: 9.613 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.597e-06/0.2856, allocations: 0 / 370.3 MB, free: 9.613 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.0003782/0.286, allocations: 353 kB / 370.6 MB, free: 9.215 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.2861, allocations: 8.031 kB / 370.6 MB, free: 9.207 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.991e-05/0.2861, allocations: 7.953 kB / 370.6 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.2863, allocations: 159.1 kB / 370.8 MB, free: 9.004 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.2863, allocations: 0 / 370.8 MB, free: 9.004 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.2863, allocations: 7.938 kB / 370.8 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.069e-05/0.2864, allocations: 29.7 kB / 370.8 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.69e-06/0.2864, allocations: 0 / 370.8 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.2864, allocations: 3.984 kB / 370.8 MB, free: 8.957 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.2865, allocations: 4 kB / 370.8 MB, free: 8.953 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.975e-05/0.2865, allocations: 3.953 kB / 370.9 MB, free: 8.949 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001547/0.2867, allocations: 145.7 kB / 371 MB, free: 8.758 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.499e-05/0.2867, allocations: 18.61 kB / 371 MB, free: 8.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.764e-06/0.2867, allocations: 3.938 kB / 371 MB, free: 8.727 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.021e-05/0.2868, allocations: 68.27 kB / 371.1 MB, free: 8.645 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 4.219e-06/0.2868, allocations: 3.984 kB / 371.1 MB, free: 8.641 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001762/0.287, allocations: 67.39 kB / 371.2 MB, free: 8.562 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.62e-05/0.2871, allocations: 85.23 kB / 371.2 MB, free: 8.461 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.152e-05/0.2872, allocations: 89.86 kB / 371.3 MB, free: 8.363 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.2872, allocations: 25.7 kB / 371.3 MB, free: 8.332 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.188e-05/0.2873, allocations: 150.6 kB / 371.5 MB, free: 8.184 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.88e-05/0.2873, allocations: 11.92 kB / 371.5 MB, free: 8.172 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.587e-06/0.2874, allocations: 0 / 371.5 MB, free: 8.172 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.2875, allocations: 322.8 kB / 371.8 MB, free: 7.848 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.32e-05/0.2875, allocations: 0 / 371.8 MB, free: 7.848 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.279e-06/0.2876, allocations: 8.062 kB / 371.8 MB, free: 7.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.604e-05/0.2876, allocations: 29.7 kB / 371.9 MB, free: 7.805 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.15e-06/0.2876, allocations: 0 / 371.9 MB, free: 7.805 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001007/0.2877, allocations: 55.41 kB / 371.9 MB, free: 7.738 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.317e-05/0.2878, allocations: 37.69 kB / 371.9 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.752e-06/0.2878, allocations: 0 / 371.9 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.2878, allocations: 0 / 371.9 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.547e-06/0.2878, allocations: 0 / 371.9 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.353e-06/0.2878, allocations: 0 / 371.9 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.785e-05/0.2879, allocations: 96 / 371.9 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.501e-06/0.2879, allocations: 8 kB / 372 MB, free: 7.688 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.0001142/0.288, allocations: 139.5 kB / 372.1 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.047e-05/0.288, allocations: 0 / 372.1 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.514e-06/0.2881, allocations: 7.125 kB / 372.1 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.24e-06/0.2881, allocations: 0 / 372.1 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.197e-06/0.2881, allocations: 3.984 kB / 372.1 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.85e-06/0.2881, allocations: 0 / 372.1 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.2882, allocations: 145.6 kB / 372.2 MB, free: 7.336 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.2883, allocations: 0 / 372.2 MB, free: 7.336 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.345e-06/0.2883, allocations: 11.94 kB / 372.3 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.411e-06/0.2883, allocations: 0 / 372.3 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.279e-06/0.2883, allocations: 0 / 372.3 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.869e-06/0.2883, allocations: 0 / 372.3 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.521e-06/0.2883, allocations: 0 / 372.3 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000132/0.2885, allocations: 94.78 kB / 372.4 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.168e-05/0.2885, allocations: 77.11 kB / 372.4 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.2885, allocations: 3.984 kB / 372.4 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.24e-05/0.2886, allocations: 8.031 kB / 372.4 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.915e-05/0.2886, allocations: 4 kB / 372.4 MB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.97e-06/0.2886, allocations: 0 / 372.4 MB, free: 7.098 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.566e-05/0.2887, allocations: 75.28 kB / 372.5 MB, free: 7.023 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.318e-06/0.2887, allocations: 0 / 372.5 MB, free: 7.023 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000281/0.289, allocations: 23.94 kB / 372.5 MB, free: 7 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.0004788/0.2895, allocations: 202.3 kB / 372.7 MB, free: 6.828 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001039/0.2896, allocations: 63.34 kB / 372.8 MB, free: 6.754 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.653e-06/0.2896, allocations: 0 / 372.8 MB, free: 6.754 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.995e-05/0.2897, allocations: 55.47 kB / 372.9 MB, free: 6.688 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001103/0.2898, allocations: 12.02 kB / 372.9 MB, free: 6.676 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002027/0.29, allocations: 102.6 kB / 373 MB, free: 6.543 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.2904, allocations: 0.677 MB / 373.6 MB, free: 5.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.132e-05/0.2904, allocations: 7.438 kB / 373.6 MB, free: 5.832 MB / 298.7 MB Notification: Performance of SimCode: time 1.359e-06/0.2904, allocations: 0 / 373.6 MB, free: 5.832 MB / 298.7 MB Notification: Performance of Templates: time 0.002721/0.2931, allocations: 0.8413 MB / 374.5 MB, free: 4.992 MB / 298.7 MB