Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.493/2.493, allocations: 234.9 MB / 251.1 MB, free: 10.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004395/0.0004397, allocations: 12 kB / 314.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3521, allocations: 54.87 MB / 369.8 MB, free: 10.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1527/0.5048, allocations: 83.87 MB / 453.7 MB, free: 6.879 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.5051, allocations: 71.97 kB / 453.7 MB, free: 6.809 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04689/0.552, allocations: 9.894 MB / 463.6 MB, free: 12.9 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5521, allocations: 0 / 463.6 MB, free: 12.9 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.5521, allocations: 0 / 463.6 MB, free: 12.9 MB / 394.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.0006767/0.5528, allocations: 483.5 kB / 464.1 MB, free: 12.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.5529, allocations: 8.031 kB / 464.1 MB, free: 12.37 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.223e-05/0.5529, allocations: 7.953 kB / 464.1 MB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.553, allocations: 167 kB / 464.3 MB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.553, allocations: 0 / 464.3 MB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.077e-06/0.5531, allocations: 0 / 464.3 MB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.829e-05/0.5532, allocations: 37.7 kB / 464.3 MB, free: 12.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.5532, allocations: 0 / 464.3 MB, free: 12.11 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.5532, allocations: 0 / 464.3 MB, free: 12.11 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.5532, allocations: 0 / 464.3 MB, free: 12.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.049e-05/0.5532, allocations: 3.953 kB / 464.3 MB, free: 12.11 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.5534, allocations: 149.7 kB / 464.5 MB, free: 11.91 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.655e-05/0.5535, allocations: 18.52 kB / 464.5 MB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.346e-06/0.5535, allocations: 0 / 464.5 MB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.997e-05/0.5535, allocations: 60.7 kB / 464.5 MB, free: 11.81 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.553e-06/0.5536, allocations: 0 / 464.5 MB, free: 11.81 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001806/0.5537, allocations: 75.34 kB / 464.6 MB, free: 11.73 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/0.5538, allocations: 81.11 kB / 464.7 MB, free: 11.63 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.63e-05/0.5539, allocations: 89.86 kB / 464.8 MB, free: 11.53 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.5539, allocations: 25.7 kB / 464.8 MB, free: 11.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.508e-05/0.554, allocations: 150.6 kB / 465 MB, free: 11.35 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.554, allocations: 128 / 465 MB, free: 11.35 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/0.554, allocations: 4 kB / 465 MB, free: 11.35 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.5542, allocations: 322.7 kB / 465.3 MB, free: 11.02 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.504e-05/0.5542, allocations: 4 kB / 465.3 MB, free: 11.02 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.832e-06/0.5542, allocations: 3.938 kB / 465.3 MB, free: 11.02 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.43e-05/0.5542, allocations: 25.7 kB / 465.3 MB, free: 10.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.5543, allocations: 0 / 465.3 MB, free: 10.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.083e-05/0.5544, allocations: 63.39 kB / 465.4 MB, free: 10.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.424e-05/0.5544, allocations: 29.7 kB / 465.4 MB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.5544, allocations: 4.094 kB / 465.4 MB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.5544, allocations: 4 kB / 465.4 MB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.403e-06/0.5545, allocations: 0 / 465.4 MB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.5545, allocations: 7.984 kB / 465.4 MB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.842e-05/0.5545, allocations: 0 / 465.4 MB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.5545, allocations: 0 / 465.4 MB, free: 10.86 MB / 394.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.0001024/0.5546, allocations: 147.5 kB / 465.6 MB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.846e-06/0.5547, allocations: 0 / 465.6 MB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.355e-05/0.5547, allocations: 3.125 kB / 465.6 MB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.5547, allocations: 4 kB / 465.6 MB, free: 10.69 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.5547, allocations: 3.938 kB / 465.6 MB, free: 10.69 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.5547, allocations: 0 / 465.6 MB, free: 10.69 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001104/0.5548, allocations: 157.6 kB / 465.7 MB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.5548, allocations: 0 / 465.7 MB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.5549, allocations: 0 / 465.7 MB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.5549, allocations: 0 / 465.7 MB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.754e-06/0.5549, allocations: 0 / 465.7 MB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.5549, allocations: 0 / 465.7 MB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.5549, allocations: 4 kB / 465.7 MB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001209/0.555, allocations: 94.78 kB / 465.8 MB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.934e-05/0.5551, allocations: 77.11 kB / 465.9 MB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.5551, allocations: 4 kB / 465.9 MB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.12e-05/0.5551, allocations: 0 / 465.9 MB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.28e-05/0.5552, allocations: 0 / 465.9 MB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-06/0.5552, allocations: 0 / 465.9 MB, free: 10.27 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.873e-05/0.5552, allocations: 75.28 kB / 466 MB, free: 10.19 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5552, allocations: 0 / 466 MB, free: 10.19 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007755/0.556, allocations: 183.8 kB / 466.2 MB, free: 10.01 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) * 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.001108/0.5571, allocations: 414 kB / 466.6 MB, free: 9.605 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.5572, allocations: 63.39 kB / 466.6 MB, free: 9.531 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.5573, allocations: 4 kB / 466.6 MB, free: 9.527 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.527e-05/0.5573, allocations: 55.41 kB / 466.7 MB, free: 9.461 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.96e-05/0.5574, allocations: 7.953 kB / 466.7 MB, free: 9.453 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001867/0.5576, allocations: 100.5 kB / 466.8 MB, free: 9.32 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.5579, allocations: 0.6731 MB / 467.5 MB, free: 8.621 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.242e-05/0.5579, allocations: 7.438 kB / 467.5 MB, free: 8.613 MB / 394.7 MB Notification: Performance of SimCode: time 6.32e-07/0.5579, allocations: 4.125 kB / 467.5 MB, free: 8.609 MB / 394.7 MB Notification: Performance of Templates: time 0.009577/0.5675, allocations: 3.851 MB / 471.3 MB, free: 4.754 MB / 394.7 MB