Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.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.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadModel(ModelicaTest): time 2.129/2.129, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.072e-05/3.079e-05, allocations: 7.984 kB / 309.7 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3124, allocations: 54.85 MB / 364.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1237/0.4362, allocations: 83.8 MB / 448.3 MB, free: 12.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.4364, allocations: 65.38 kB / 448.4 MB, free: 12.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04191/0.4784, allocations: 9.858 MB / 458.3 MB, free: 2.773 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.826e-06/0.4784, allocations: 0 / 458.3 MB, free: 2.773 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.973e-06/0.4784, allocations: 4 kB / 458.3 MB, free: 2.77 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.0006331/0.4791, allocations: 475.8 kB / 458.7 MB, free: 2.254 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.4791, allocations: 8.031 kB / 458.7 MB, free: 2.246 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.045e-05/0.4792, allocations: 3.953 kB / 458.7 MB, free: 2.242 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001229/0.4793, allocations: 167 kB / 458.9 MB, free: 2.039 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.4793, allocations: 3.938 kB / 458.9 MB, free: 2.035 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.4793, allocations: 4 kB / 458.9 MB, free: 2.031 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.296e-05/0.4794, allocations: 29.7 kB / 458.9 MB, free: 1.996 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.4795, allocations: 0 / 458.9 MB, free: 1.996 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.909e-06/0.4795, allocations: 0 / 458.9 MB, free: 1.996 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.016e-06/0.4795, allocations: 5.891 kB / 458.9 MB, free: 1.992 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.633e-05/0.4795, allocations: 4 kB / 458.9 MB, free: 1.988 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001578/0.4797, allocations: 146.2 kB / 459.1 MB, free: 1.797 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.736e-05/0.4798, allocations: 26.98 kB / 459.1 MB, free: 1.762 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.614e-05/0.4798, allocations: 4.859 kB / 459.1 MB, free: 1.754 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.074e-06/0.4798, allocations: 4 kB / 459.1 MB, free: 1.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.259e-05/0.4799, allocations: 56.27 kB / 459.2 MB, free: 1.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.935e-06/0.4799, allocations: 0 / 459.2 MB, free: 1.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001507/0.48, allocations: 60.5 kB / 459.2 MB, free: 1.609 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.077e-05/0.4801, allocations: 81.09 kB / 459.3 MB, free: 1.512 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.479e-05/0.4802, allocations: 89 kB / 459.4 MB, free: 1.418 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.4802, allocations: 29.7 kB / 459.4 MB, free: 1.383 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.802e-05/0.4803, allocations: 158.5 kB / 459.6 MB, free: 1.227 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.475e-05/0.4803, allocations: 0 / 459.6 MB, free: 1.227 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-06/0.4803, allocations: 0 / 459.6 MB, free: 1.227 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.4805, allocations: 314.8 kB / 459.9 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.503e-06/0.4805, allocations: 0 / 459.9 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.198e-05/0.4805, allocations: 7.938 kB / 459.9 MB, free: 0.9023 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.542e-05/0.4806, allocations: 25.7 kB / 459.9 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.102e-06/0.4806, allocations: 1.406 kB / 459.9 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001167/0.4807, allocations: 63.45 kB / 460 MB, free: 0.7969 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/0.4808, allocations: 35.61 kB / 460 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.726e-06/0.4808, allocations: 0 / 460 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.4808, allocations: 0 / 460 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.571e-06/0.4808, allocations: 0 / 460 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.429e-06/0.4808, allocations: 4 kB / 460 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.643e-05/0.4809, allocations: 0 / 460 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.4809, allocations: 4 kB / 460 MB, free: 0.75 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.0001052/0.481, allocations: 134.6 kB / 460.2 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.016e-05/0.481, allocations: 0 / 460.2 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.391e-05/0.4811, allocations: 11.08 kB / 460.2 MB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.23e-06/0.4811, allocations: 0 / 460.2 MB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.119e-06/0.4811, allocations: 3.984 kB / 460.2 MB, free: 0.5898 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.797e-06/0.4811, allocations: 0 / 460.2 MB, free: 0.5898 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.4812, allocations: 156.8 kB / 460.3 MB, free: 400 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-06/0.4812, allocations: 0 / 460.3 MB, free: 400 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.195e-06/0.4813, allocations: 3.938 kB / 460.3 MB, free: 396 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.778e-06/0.4813, allocations: 0 / 460.3 MB, free: 396 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.4813, allocations: 0 / 460.3 MB, free: 396 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.825e-06/0.4813, allocations: 0 / 460.3 MB, free: 396 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.497e-06/0.4813, allocations: 0 / 460.3 MB, free: 396 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001299/0.4814, allocations: 102.8 kB / 460.4 MB, free: 268 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.002e-05/0.4815, allocations: 77.11 kB / 460.5 MB, free: 172 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.4815, allocations: 0 / 460.5 MB, free: 172 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.561e-05/0.4816, allocations: 7.984 kB / 460.5 MB, free: 164 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.433e-05/0.4816, allocations: 0 / 460.5 MB, free: 164 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.4816, allocations: 0 / 460.5 MB, free: 164 kB / 378.7 MB Notification: Performance of sorting global known variables: time 4.083e-05/0.4816, allocations: 75.28 kB / 460.6 MB, free: 88 kB / 378.7 MB Notification: Performance of sort global known variables: time 7.24e-07/0.4817, allocations: 7.969 kB / 460.6 MB, free: 80 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.000693/0.4824, allocations: 175.8 kB / 460.8 MB, free: 15.91 MB / 394.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.0009345/0.4833, allocations: 407.3 kB / 461.2 MB, free: 15.51 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001026/0.4834, allocations: 67.34 kB / 461.2 MB, free: 15.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4835, allocations: 0 / 461.2 MB, free: 15.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.667e-05/0.4835, allocations: 51.41 kB / 461.3 MB, free: 15.37 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.465e-05/0.4836, allocations: 10.36 kB / 461.3 MB, free: 15.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001534/0.4838, allocations: 70.75 kB / 461.4 MB, free: 15.26 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.4841, allocations: 0.6731 MB / 462 MB, free: 14.56 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.144e-05/0.4842, allocations: 11.56 kB / 462 MB, free: 14.55 MB / 394.7 MB Notification: Performance of SimCode: time 1.462e-06/0.4842, allocations: 0 / 462 MB, free: 14.55 MB / 394.7 MB Notification: Performance of Templates: time 0.007571/0.4918, allocations: 3.841 MB / 465.9 MB, free: 10.71 MB / 394.7 MB