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.TestComplexOperations.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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadModel(ModelicaTest): time 2.473/2.473, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.821e-05/2.836e-05, allocations: 4 kB / 309.7 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3415, allocations: 54.86 MB / 364.5 MB, free: 5.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1729/0.5145, allocations: 83.8 MB / 448.3 MB, free: 12.67 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002156/0.5147, allocations: 59.97 kB / 448.4 MB, free: 12.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04387/0.5586, allocations: 9.863 MB / 458.3 MB, free: 2.754 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.148e-06/0.5587, allocations: 4 kB / 458.3 MB, free: 2.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.5587, allocations: 0 / 458.3 MB, free: 2.75 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.0006679/0.5594, allocations: 475.8 kB / 458.7 MB, free: 2.234 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.5594, allocations: 8.031 kB / 458.7 MB, free: 2.227 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.397e-05/0.5595, allocations: 8.875 kB / 458.7 MB, free: 2.219 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.5596, allocations: 159.1 kB / 458.9 MB, free: 2.023 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.5596, allocations: 0 / 458.9 MB, free: 2.023 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/0.5597, allocations: 8 kB / 458.9 MB, free: 2.016 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.205e-05/0.5598, allocations: 25.7 kB / 458.9 MB, free: 1.984 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.105e-06/0.5598, allocations: 0 / 458.9 MB, free: 1.984 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.106e-06/0.5598, allocations: 0 / 458.9 MB, free: 1.984 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.5598, allocations: 7.953 kB / 458.9 MB, free: 1.977 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.682e-05/0.5598, allocations: 0 / 458.9 MB, free: 1.977 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001572/0.56, allocations: 149.7 kB / 459.1 MB, free: 1.781 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.952e-05/0.5601, allocations: 23.83 kB / 459.1 MB, free: 1.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.674e-05/0.5601, allocations: 8.859 kB / 459.1 MB, free: 1.738 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.519e-06/0.5601, allocations: 0 / 459.1 MB, free: 1.738 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.339e-05/0.5602, allocations: 57.2 kB / 459.2 MB, free: 1.668 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.031e-06/0.5602, allocations: 4 kB / 459.2 MB, free: 1.664 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001595/0.5604, allocations: 55.41 kB / 459.2 MB, free: 1.598 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/0.5605, allocations: 89.03 kB / 459.3 MB, free: 1.492 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.691e-05/0.5605, allocations: 85 kB / 459.4 MB, free: 1.402 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.5606, allocations: 33.73 kB / 459.4 MB, free: 1.363 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.408e-05/0.5606, allocations: 151.1 kB / 459.6 MB, free: 1.215 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.565e-05/0.5607, allocations: 3.938 kB / 459.6 MB, free: 1.211 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.554e-06/0.5607, allocations: 0 / 459.6 MB, free: 1.211 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.5608, allocations: 314.8 kB / 459.9 MB, free: 0.8945 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.002e-05/0.5609, allocations: 0 / 459.9 MB, free: 0.8945 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.712e-06/0.5609, allocations: 4 kB / 459.9 MB, free: 0.8906 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.312e-05/0.5609, allocations: 26.73 kB / 459.9 MB, free: 0.8594 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.398e-06/0.5609, allocations: 4.062 kB / 459.9 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001012/0.5611, allocations: 63.39 kB / 460 MB, free: 0.7812 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.109e-05/0.5611, allocations: 35.58 kB / 460 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.177e-06/0.5611, allocations: 0 / 460 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.5612, allocations: 0 / 460 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.799e-06/0.5612, allocations: 4 kB / 460 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.963e-06/0.5612, allocations: 0 / 460 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.867e-05/0.5612, allocations: 0 / 460 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.5612, allocations: 0.625 kB / 460 MB, free: 0.7383 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.0001078/0.5613, allocations: 142.6 kB / 460.2 MB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.042e-05/0.5614, allocations: 1.406 kB / 460.2 MB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.912e-05/0.5614, allocations: 11.06 kB / 460.2 MB, free: 0.5742 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.148e-06/0.5614, allocations: 0 / 460.2 MB, free: 0.5742 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.042e-06/0.5614, allocations: 0 / 460.2 MB, free: 0.5742 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.069e-06/0.5614, allocations: 0 / 460.2 MB, free: 0.5742 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.5616, allocations: 157.6 kB / 460.3 MB, free: 384 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.821e-06/0.5616, allocations: 0 / 460.3 MB, free: 384 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.266e-06/0.5616, allocations: 0 / 460.3 MB, free: 384 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.812e-06/0.5616, allocations: 0 / 460.3 MB, free: 384 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.794e-06/0.5616, allocations: 0 / 460.3 MB, free: 384 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.151e-06/0.5616, allocations: 7.984 kB / 460.3 MB, free: 376 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.585e-06/0.5616, allocations: 0 / 460.3 MB, free: 376 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001306/0.5618, allocations: 94.8 kB / 460.4 MB, free: 256 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.044e-05/0.5619, allocations: 77.11 kB / 460.5 MB, free: 160 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.887e-05/0.5619, allocations: 7.984 kB / 460.5 MB, free: 152 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.258e-05/0.5619, allocations: 3.938 kB / 460.5 MB, free: 148 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.415e-05/0.5619, allocations: 0 / 460.5 MB, free: 148 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.5619, allocations: 7.969 kB / 460.5 MB, free: 140 kB / 378.7 MB Notification: Performance of sorting global known variables: time 4.302e-05/0.562, allocations: 75.28 kB / 460.6 MB, free: 64 kB / 378.7 MB Notification: Performance of sort global known variables: time 2.899e-06/0.562, allocations: 0 / 460.6 MB, free: 64 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.000813/0.5628, allocations: 183.8 kB / 460.8 MB, free: 15.88 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.0009951/0.5638, allocations: 398.6 kB / 461.2 MB, free: 15.49 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001164/0.564, allocations: 63.41 kB / 461.2 MB, free: 15.42 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.743e-06/0.564, allocations: 0 / 461.2 MB, free: 15.42 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.241e-05/0.5641, allocations: 55.41 kB / 461.3 MB, free: 15.35 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000102/0.5642, allocations: 3.953 kB / 461.3 MB, free: 15.35 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001693/0.5644, allocations: 74.88 kB / 461.4 MB, free: 15.25 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.5647, allocations: 0.6731 MB / 462 MB, free: 14.55 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.321e-05/0.5647, allocations: 7.438 kB / 462 MB, free: 14.54 MB / 394.7 MB Notification: Performance of SimCode: time 1.558e-06/0.5648, allocations: 0 / 462 MB, free: 14.54 MB / 394.7 MB Notification: Performance of Templates: time 0.008413/0.5732, allocations: 3.848 MB / 465.9 MB, free: 10.69 MB / 394.7 MB