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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.144/2.144, allocations: 235.1 MB / 243 MB, free: 9.488 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.268e-05/1.278e-05, allocations: 0 / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2752, allocations: 54.86 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1293/0.4046, allocations: 83.13 MB / 441.2 MB, free: 11.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002069/0.4048, allocations: 67.97 kB / 441.2 MB, free: 11.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04086/0.4457, allocations: 9.701 MB / 450.9 MB, free: 1.902 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.007e-06/0.4457, allocations: 0 / 450.9 MB, free: 1.902 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.4458, allocations: 0 / 450.9 MB, free: 1.902 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.0006254/0.4464, allocations: 475.8 kB / 451.4 MB, free: 1.387 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.4465, allocations: 12.03 kB / 451.4 MB, free: 1.375 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.982e-05/0.4465, allocations: 7.891 kB / 451.4 MB, free: 1.367 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.4466, allocations: 163.1 kB / 451.6 MB, free: 1.168 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.4467, allocations: 0 / 451.6 MB, free: 1.168 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.4467, allocations: 3.984 kB / 451.6 MB, free: 1.164 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3e-05/0.4467, allocations: 0 / 451.6 MB, free: 1.164 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.856e-05/0.4468, allocations: 37.58 kB / 451.6 MB, free: 1.121 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.569e-06/0.4468, allocations: 0 / 451.6 MB, free: 1.121 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.916e-06/0.4468, allocations: 0 / 451.6 MB, free: 1.121 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.4468, allocations: 3.953 kB / 451.6 MB, free: 1.117 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001351/0.447, allocations: 126.2 kB / 451.7 MB, free: 0.957 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.968e-05/0.447, allocations: 22.61 kB / 451.8 MB, free: 0.9258 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.457e-05/0.4471, allocations: 4.859 kB / 451.8 MB, free: 0.918 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.707e-06/0.4471, allocations: 0 / 451.8 MB, free: 0.918 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.688e-05/0.4471, allocations: 60.75 kB / 451.8 MB, free: 0.8438 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.987e-06/0.4472, allocations: 4 kB / 451.8 MB, free: 0.8398 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001729/0.4473, allocations: 37.55 kB / 451.9 MB, free: 0.7969 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.4474, allocations: 77.11 kB / 451.9 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.273e-05/0.4475, allocations: 93.03 kB / 452 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.4475, allocations: 25.7 kB / 452.1 MB, free: 0.5742 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.365e-05/0.4476, allocations: 150.6 kB / 452.2 MB, free: 436 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.439e-05/0.4476, allocations: 4 kB / 452.2 MB, free: 432 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.624e-06/0.4476, allocations: 0 / 452.2 MB, free: 432 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.4478, allocations: 314.8 kB / 452.5 MB, free: 108 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.361e-06/0.4478, allocations: 0 / 452.5 MB, free: 108 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.68e-06/0.4478, allocations: 3.984 kB / 452.5 MB, free: 104 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.078e-05/0.4479, allocations: 8.062 kB / 452.5 MB, free: 96 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.153e-06/0.4479, allocations: 0 / 452.5 MB, free: 96 kB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.72e-05/0.448, allocations: 33.7 kB / 452.6 MB, free: 56 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.606e-05/0.4481, allocations: 33.7 kB / 452.6 MB, free: 16 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.572e-06/0.4481, allocations: 0 / 452.6 MB, free: 16 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.4481, allocations: 0 / 452.6 MB, free: 16 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.626e-06/0.4481, allocations: 0 / 452.6 MB, free: 16 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.852e-06/0.4481, allocations: 0 / 452.6 MB, free: 16 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.826e-05/0.4481, allocations: 3.984 kB / 452.6 MB, free: 12 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.4482, allocations: 3.984 kB / 452.6 MB, free: 8 kB / 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.0001284/0.4483, allocations: 146.6 kB / 452.7 MB, free: 15.85 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.037e-05/0.4483, allocations: 3.938 kB / 452.7 MB, free: 15.85 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.138e-05/0.4483, allocations: 7.703 kB / 452.8 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.207e-06/0.4484, allocations: 0 / 452.8 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.811e-06/0.4484, allocations: 0 / 452.8 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.86e-06/0.4484, allocations: 4 kB / 452.8 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001031/0.4485, allocations: 126.2 kB / 452.9 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.312e-06/0.4485, allocations: 3.953 kB / 452.9 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.337e-06/0.4485, allocations: 0 / 452.9 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.521e-06/0.4485, allocations: 0 / 452.9 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-06/0.4486, allocations: 4 kB / 452.9 MB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.352e-06/0.4486, allocations: 4 kB / 452.9 MB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.556e-06/0.4486, allocations: 3.938 kB / 452.9 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001177/0.4487, allocations: 57.14 kB / 453 MB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.309e-05/0.4488, allocations: 85.05 kB / 453 MB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.394e-05/0.4488, allocations: 0 / 453 MB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.256e-05/0.4488, allocations: 4 kB / 453 MB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.365e-05/0.4489, allocations: 4.031 kB / 453 MB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.76e-06/0.4489, allocations: 0 / 453 MB, free: 15.48 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.184e-05/0.4489, allocations: 79.28 kB / 453.1 MB, free: 15.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.72e-07/0.4489, allocations: 3.938 kB / 453.1 MB, free: 15.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006297/0.4496, allocations: 179.8 kB / 453.3 MB, free: 15.22 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.0009105/0.4505, allocations: 400.4 kB / 453.7 MB, free: 14.83 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.636e-05/0.4506, allocations: 55.41 kB / 453.7 MB, free: 14.76 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.507e-06/0.4506, allocations: 0 / 453.7 MB, free: 14.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.071e-05/0.4507, allocations: 59.39 kB / 453.8 MB, free: 14.69 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.305e-05/0.4508, allocations: 0 / 453.8 MB, free: 14.69 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000149/0.451, allocations: 73.84 kB / 453.9 MB, free: 14.59 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.4513, allocations: 0.6768 MB / 454.6 MB, free: 13.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.301e-05/0.4513, allocations: 7.438 kB / 454.6 MB, free: 13.88 MB / 394.7 MB Notification: Performance of SimCode: time 1.303e-06/0.4514, allocations: 0 / 454.6 MB, free: 13.88 MB / 394.7 MB Notification: Performance of Templates: time 0.01481/0.4662, allocations: 3.927 MB / 458.5 MB, free: 9.945 MB / 394.7 MB