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.TestFiles.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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadModel(ModelicaTest): time 2.249/2.249, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004307/0.0004309, allocations: 12 kB / 314.3 MB, free: 9.613 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2786, allocations: 54.87 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.000555/0.2792, allocations: 208.5 kB / 369.4 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000748/0.28, allocations: 313.7 kB / 369.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.761e-05/0.28, allocations: 0 / 369.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.876e-06/0.28, allocations: 0 / 369.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.037e-06/0.2801, allocations: 0 / 369.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003347/0.2804, allocations: 75.8 kB / 369.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.598e-05/0.2805, allocations: 0 / 369.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.436e-05/0.2805, allocations: 0 / 369.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.339e-05/0.2805, allocations: 0 / 369.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.335e-05/0.2806, allocations: 8 kB / 369.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.001e-06/0.2806, allocations: 0 / 369.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002118/0.2808, allocations: 95.84 kB / 369.9 MB, free: 10.03 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.225e-06/0.2808, allocations: 7.922 kB / 369.9 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.975e-05/0.2809, allocations: 25.7 kB / 369.9 MB, free: 9.988 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001503/0.281, allocations: 55.92 kB / 370 MB, free: 9.934 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.422e-06/0.281, allocations: 0 / 370 MB, free: 9.934 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2811, allocations: 4 kB / 370 MB, free: 9.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.2811, allocations: 0 / 370 MB, free: 9.93 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.0003708/0.2815, allocations: 361.1 kB / 370.3 MB, free: 9.523 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.2815, allocations: 12.03 kB / 370.3 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.881e-05/0.2815, allocations: 3.953 kB / 370.3 MB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.2817, allocations: 163.1 kB / 370.5 MB, free: 9.309 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.2817, allocations: 3.938 kB / 370.5 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.147e-05/0.2817, allocations: 0 / 370.5 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.596e-05/0.2818, allocations: 33.69 kB / 370.5 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.053e-06/0.2818, allocations: 0 / 370.5 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.914e-06/0.2819, allocations: 0 / 370.5 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.546e-06/0.2819, allocations: 0 / 370.5 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.281e-05/0.2819, allocations: 7.891 kB / 370.5 MB, free: 9.258 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001601/0.2821, allocations: 149.7 kB / 370.7 MB, free: 9.062 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.086e-05/0.2821, allocations: 18.61 kB / 370.7 MB, free: 9.035 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.582e-06/0.2821, allocations: 0 / 370.7 MB, free: 9.035 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.4e-05/0.2822, allocations: 60.25 kB / 370.8 MB, free: 8.961 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.756e-06/0.2822, allocations: 0 / 370.8 MB, free: 8.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001697/0.2824, allocations: 71.31 kB / 370.8 MB, free: 8.879 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.381e-05/0.2825, allocations: 85.23 kB / 370.9 MB, free: 8.777 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.605e-05/0.2825, allocations: 89.86 kB / 371 MB, free: 8.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.2826, allocations: 25.7 kB / 371 MB, free: 8.648 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.518e-05/0.2827, allocations: 154.5 kB / 371.2 MB, free: 8.496 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.53e-05/0.2827, allocations: 0 / 371.2 MB, free: 8.496 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-06/0.2827, allocations: 0 / 371.2 MB, free: 8.496 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.2829, allocations: 322.8 kB / 371.5 MB, free: 8.172 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.961e-06/0.2829, allocations: 0 / 371.5 MB, free: 8.172 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.677e-06/0.2829, allocations: 4 kB / 371.5 MB, free: 8.168 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.355e-05/0.283, allocations: 33.77 kB / 371.5 MB, free: 8.129 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.158e-06/0.283, allocations: 0 / 371.5 MB, free: 8.129 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001002/0.2831, allocations: 59.41 kB / 371.6 MB, free: 8.059 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.772e-05/0.2832, allocations: 33.69 kB / 371.6 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.011e-06/0.2832, allocations: 3.938 kB / 371.6 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.2832, allocations: 4 kB / 371.6 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.595e-06/0.2832, allocations: 0 / 371.6 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.2832, allocations: 3.984 kB / 371.6 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.924e-05/0.2832, allocations: 0 / 371.6 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.2833, allocations: 4.031 kB / 371.6 MB, free: 8.004 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.0001132/0.2834, allocations: 139.5 kB / 371.8 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.917e-06/0.2834, allocations: 0 / 371.8 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.803e-06/0.2834, allocations: 3.125 kB / 371.8 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.2834, allocations: 0 / 371.8 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.2835, allocations: 3.938 kB / 371.8 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.003e-06/0.2835, allocations: 0 / 371.8 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001348/0.2836, allocations: 157.6 kB / 371.9 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.772e-06/0.2836, allocations: 0 / 371.9 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.264e-06/0.2836, allocations: 4 kB / 371.9 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.34e-06/0.2836, allocations: 0 / 371.9 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.65e-06/0.2837, allocations: 0 / 371.9 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.2837, allocations: 4 kB / 371.9 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.474e-06/0.2837, allocations: 0 / 371.9 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001267/0.2838, allocations: 98.72 kB / 372 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.91e-05/0.2839, allocations: 77.11 kB / 372.1 MB, free: 7.422 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.2839, allocations: 4 kB / 372.1 MB, free: 7.418 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.293e-05/0.2839, allocations: 4.031 kB / 372.1 MB, free: 7.414 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.789e-05/0.284, allocations: 3.984 kB / 372.1 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.545e-06/0.284, allocations: 0 / 372.1 MB, free: 7.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.937e-05/0.284, allocations: 75.28 kB / 372.2 MB, free: 7.336 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.58e-07/0.284, allocations: 0 / 372.2 MB, free: 7.336 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003219/0.2844, allocations: 40 kB / 372.2 MB, free: 7.297 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.000531/0.2849, allocations: 214.5 kB / 372.4 MB, free: 7.113 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001034/0.285, allocations: 67.39 kB / 372.5 MB, free: 7.035 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.709e-06/0.285, allocations: 0 / 372.5 MB, free: 7.035 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.132e-05/0.2851, allocations: 55.41 kB / 372.6 MB, free: 6.969 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001003/0.2852, allocations: 15.95 kB / 372.6 MB, free: 6.953 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001905/0.2854, allocations: 105.1 kB / 372.7 MB, free: 6.816 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003394/0.2858, allocations: 0.6731 MB / 373.3 MB, free: 6.117 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.159e-05/0.2858, allocations: 7.438 kB / 373.4 MB, free: 6.109 MB / 298.7 MB Notification: Performance of SimCode: time 1.251e-06/0.2858, allocations: 0 / 373.4 MB, free: 6.109 MB / 298.7 MB Notification: Performance of Templates: time 0.003209/0.289, allocations: 1.081 MB / 374.4 MB, free: 5.027 MB / 298.7 MB