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.127/2.127, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004256/0.0004259, allocations: 12 kB / 314.4 MB, free: 9.559 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2686, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1227/0.3913, allocations: 83.88 MB / 453.1 MB, free: 6.703 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.3916, allocations: 71.91 kB / 453.2 MB, free: 6.633 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04093/0.4325, allocations: 9.886 MB / 463.1 MB, free: 12.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.313e-06/0.4326, allocations: 4 kB / 463.1 MB, free: 12.73 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.4326, allocations: 0 / 463.1 MB, free: 12.73 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.0006348/0.4333, allocations: 484.6 kB / 463.6 MB, free: 12.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.4333, allocations: 12.02 kB / 463.6 MB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.768e-05/0.4333, allocations: 3.953 kB / 463.6 MB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001106/0.4335, allocations: 159.1 kB / 463.7 MB, free: 11.99 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.4335, allocations: 4 kB / 463.7 MB, free: 11.98 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.873e-06/0.4335, allocations: 4 kB / 463.8 MB, free: 11.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.112e-05/0.4336, allocations: 33.62 kB / 463.8 MB, free: 11.94 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.358e-06/0.4336, allocations: 0 / 463.8 MB, free: 11.94 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-06/0.4336, allocations: 0 / 463.8 MB, free: 11.94 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.354e-06/0.4337, allocations: 4 kB / 463.8 MB, free: 11.94 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.936e-05/0.4337, allocations: 3.953 kB / 463.8 MB, free: 11.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001565/0.4338, allocations: 149.7 kB / 463.9 MB, free: 11.74 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.588e-05/0.4339, allocations: 22.61 kB / 464 MB, free: 11.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.804e-06/0.4339, allocations: 0 / 464 MB, free: 11.71 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.905e-05/0.434, allocations: 56.7 kB / 464 MB, free: 11.64 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.835e-06/0.434, allocations: 0 / 464 MB, free: 11.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001734/0.4342, allocations: 71.3 kB / 464.1 MB, free: 11.55 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.231e-05/0.4343, allocations: 81.11 kB / 464.2 MB, free: 11.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.656e-05/0.4343, allocations: 85 kB / 464.2 MB, free: 11.37 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.4343, allocations: 25.7 kB / 464.3 MB, free: 11.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.078e-05/0.4344, allocations: 158.7 kB / 464.4 MB, free: 11.18 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.4345, allocations: 4 kB / 464.4 MB, free: 11.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-06/0.4345, allocations: 0 / 464.4 MB, free: 11.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.4346, allocations: 314.8 kB / 464.7 MB, free: 10.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.897e-06/0.4346, allocations: 0 / 464.7 MB, free: 10.86 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.359e-06/0.4347, allocations: 0 / 464.7 MB, free: 10.86 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.326e-05/0.4347, allocations: 29.7 kB / 464.8 MB, free: 10.82 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.603e-06/0.4347, allocations: 0 / 464.8 MB, free: 10.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001013/0.4348, allocations: 79.33 kB / 464.8 MB, free: 10.73 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.303e-05/0.4349, allocations: 29.7 kB / 464.9 MB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.625e-06/0.4349, allocations: 0 / 464.9 MB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.4349, allocations: 0 / 464.9 MB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-06/0.4349, allocations: 0 / 464.9 MB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.112e-06/0.4349, allocations: 0 / 464.9 MB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.876e-05/0.435, allocations: 4 kB / 464.9 MB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.246e-06/0.435, allocations: 0 / 464.9 MB, free: 10.7 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.0001058/0.4351, allocations: 139.5 kB / 465 MB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.19e-05/0.4351, allocations: 8.031 kB / 465 MB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.129e-05/0.4351, allocations: 3.125 kB / 465 MB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.945e-06/0.4351, allocations: 0 / 465 MB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.375e-06/0.4352, allocations: 0 / 465 MB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.023e-06/0.4352, allocations: 0 / 465 MB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.4353, allocations: 153.6 kB / 465.2 MB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.709e-06/0.4353, allocations: 0 / 465.2 MB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.266e-06/0.4353, allocations: 4 kB / 465.2 MB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.302e-06/0.4353, allocations: 0 / 465.2 MB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.591e-06/0.4353, allocations: 0 / 465.2 MB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.635e-06/0.4354, allocations: 0 / 465.2 MB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.243e-06/0.4354, allocations: 8 kB / 465.2 MB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001306/0.4355, allocations: 102.7 kB / 465.3 MB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.66e-05/0.4356, allocations: 77.11 kB / 465.4 MB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.4356, allocations: 0 / 465.4 MB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.176e-05/0.4356, allocations: 0 / 465.4 MB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.798e-05/0.4356, allocations: 4 kB / 465.4 MB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.543e-06/0.4357, allocations: 0 / 465.4 MB, free: 10.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.844e-05/0.4357, allocations: 79.31 kB / 465.4 MB, free: 10.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.83e-07/0.4357, allocations: 0 / 465.4 MB, free: 10.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006956/0.4364, allocations: 175.8 kB / 465.6 MB, free: 9.848 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.0009265/0.4374, allocations: 406.9 kB / 466 MB, free: 9.445 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.917e-05/0.4375, allocations: 63.33 kB / 466.1 MB, free: 9.371 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.4375, allocations: 4 kB / 466.1 MB, free: 9.367 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.399e-05/0.4376, allocations: 59.34 kB / 466.1 MB, free: 9.297 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.72e-05/0.4377, allocations: 3.953 kB / 466.1 MB, free: 9.293 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001863/0.4379, allocations: 108.5 kB / 466.2 MB, free: 9.152 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.4382, allocations: 0.681 MB / 466.9 MB, free: 8.445 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.38e-05/0.4382, allocations: 11.44 kB / 466.9 MB, free: 8.434 MB / 394.7 MB Notification: Performance of SimCode: time 1.272e-06/0.4382, allocations: 0 / 466.9 MB, free: 8.434 MB / 394.7 MB Notification: Performance of Templates: time 0.0077/0.4459, allocations: 3.844 MB / 470.8 MB, free: 4.586 MB / 394.7 MB