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.TestInternal.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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadModel(ModelicaTest): time 2.309/2.309, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004306/0.0004309, allocations: 12 kB / 314.3 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.2768, allocations: 54.86 MB / 369.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0005617/0.2774, allocations: 216.5 kB / 369.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006776/0.2781, allocations: 233.4 kB / 369.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.789e-05/0.2782, allocations: 0 / 369.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.537e-06/0.2782, allocations: 0 / 369.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.83e-06/0.2782, allocations: 0 / 369.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000257/0.2785, allocations: 39.83 kB / 369.6 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.171e-05/0.2785, allocations: 4 kB / 369.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.024e-05/0.2786, allocations: 0 / 369.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.413e-05/0.2786, allocations: 0 / 369.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.371e-05/0.2786, allocations: 3.984 kB / 369.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.758e-06/0.2787, allocations: 4 kB / 369.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.2788, allocations: 51.89 kB / 369.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.989e-06/0.2788, allocations: 0 / 369.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.391e-05/0.2789, allocations: 33.64 kB / 369.7 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001052/0.279, allocations: 31.95 kB / 369.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.744e-06/0.279, allocations: 0 / 369.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.181e-06/0.279, allocations: 0 / 369.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.794e-06/0.279, allocations: 4 kB / 369.8 MB, free: 10.12 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.0003554/0.2794, allocations: 357.1 kB / 370.1 MB, free: 9.719 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.2794, allocations: 12.03 kB / 370.1 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.241e-05/0.2795, allocations: 7.953 kB / 370.1 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.2796, allocations: 159.1 kB / 370.3 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.2796, allocations: 0 / 370.3 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.2797, allocations: 0 / 370.3 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.561e-05/0.2797, allocations: 33.69 kB / 370.3 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.818e-06/0.2798, allocations: 0 / 370.3 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.059e-06/0.2798, allocations: 0 / 370.3 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.643e-06/0.2798, allocations: 7.938 kB / 370.3 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.342e-05/0.2798, allocations: 3.953 kB / 370.3 MB, free: 9.453 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001632/0.28, allocations: 157.6 kB / 370.5 MB, free: 9.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.486e-05/0.2801, allocations: 18.58 kB / 370.5 MB, free: 9.223 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.069e-05/0.2801, allocations: 3.984 kB / 370.5 MB, free: 9.219 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.929e-05/0.2802, allocations: 60.36 kB / 370.6 MB, free: 9.145 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.978e-06/0.2802, allocations: 0 / 370.6 MB, free: 9.145 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.000175/0.2804, allocations: 67.25 kB / 370.6 MB, free: 9.066 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.28e-05/0.2804, allocations: 81.23 kB / 370.7 MB, free: 8.969 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.532e-05/0.2805, allocations: 93.86 kB / 370.8 MB, free: 8.867 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.2805, allocations: 25.7 kB / 370.8 MB, free: 8.836 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.225e-05/0.2806, allocations: 154.5 kB / 371 MB, free: 8.684 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.572e-05/0.2806, allocations: 0 / 371 MB, free: 8.684 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.507e-06/0.2807, allocations: 0 / 371 MB, free: 8.684 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.2808, allocations: 314.8 kB / 371.3 MB, free: 8.367 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.082e-05/0.2809, allocations: 4 kB / 371.3 MB, free: 8.363 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.09e-06/0.2809, allocations: 0 / 371.3 MB, free: 8.363 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.525e-05/0.2809, allocations: 29.77 kB / 371.3 MB, free: 8.328 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.211e-06/0.2809, allocations: 0 / 371.3 MB, free: 8.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001004/0.281, allocations: 67.39 kB / 371.4 MB, free: 8.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.556e-05/0.2811, allocations: 37.69 kB / 371.4 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.944e-06/0.2811, allocations: 0 / 371.4 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.2811, allocations: 3.938 kB / 371.4 MB, free: 8.203 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.109e-06/0.2812, allocations: 3.938 kB / 371.4 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.941e-06/0.2812, allocations: 0 / 371.4 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.985e-05/0.2812, allocations: 0 / 371.4 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.829e-06/0.2812, allocations: 0 / 371.4 MB, free: 8.199 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.2813, allocations: 143.5 kB / 371.6 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.948e-06/0.2814, allocations: 0 / 371.6 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.922e-06/0.2814, allocations: 3.125 kB / 371.6 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.168e-06/0.2814, allocations: 3.984 kB / 371.6 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.2814, allocations: 4 kB / 371.6 MB, free: 8.035 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.525e-06/0.2814, allocations: 0 / 371.6 MB, free: 8.035 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.2816, allocations: 145.6 kB / 371.7 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/0.2816, allocations: 0 / 371.7 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.255e-06/0.2816, allocations: 0 / 371.7 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.582e-06/0.2816, allocations: 4 kB / 371.7 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.2816, allocations: 8 kB / 371.8 MB, free: 7.832 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.832e-06/0.2816, allocations: 0 / 371.8 MB, free: 7.832 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.581e-06/0.2816, allocations: 0 / 371.8 MB, free: 7.832 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000129/0.2818, allocations: 90.78 kB / 371.8 MB, free: 7.719 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.373e-05/0.2818, allocations: 81.11 kB / 371.9 MB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.2819, allocations: 11.86 kB / 371.9 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.274e-05/0.2819, allocations: 0 / 371.9 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.25e-05/0.2819, allocations: 4.031 kB / 371.9 MB, free: 7.605 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.3e-06/0.2819, allocations: 0 / 371.9 MB, free: 7.605 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.296e-05/0.282, allocations: 79.28 kB / 372 MB, free: 7.527 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.58e-07/0.282, allocations: 0 / 372 MB, free: 7.527 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003129/0.2823, allocations: 16 kB / 372 MB, free: 7.512 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.0007099/0.283, allocations: 293.6 kB / 372.3 MB, free: 7.281 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001094/0.2832, allocations: 59.39 kB / 372.4 MB, free: 7.211 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.807e-06/0.2832, allocations: 0 / 372.4 MB, free: 7.211 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.341e-05/0.2832, allocations: 55.41 kB / 372.4 MB, free: 7.145 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.967e-05/0.2834, allocations: 3.953 kB / 372.4 MB, free: 7.141 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002061/0.2836, allocations: 117.2 kB / 372.5 MB, free: 6.992 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.2839, allocations: 0.677 MB / 373.2 MB, free: 6.289 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.299e-05/0.284, allocations: 11.44 kB / 373.2 MB, free: 6.277 MB / 298.7 MB Notification: Performance of SimCode: time 1.242e-06/0.284, allocations: 0 / 373.2 MB, free: 6.277 MB / 298.7 MB Notification: Performance of Templates: time 0.002966/0.287, allocations: 0.9679 MB / 374.2 MB, free: 5.309 MB / 298.7 MB