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.162/2.162, allocations: 234.9 MB / 250.5 MB, free: 10.45 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004357/0.0004359, allocations: 8 kB / 314.3 MB, free: 10.51 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2741, allocations: 54.87 MB / 369.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.000541/0.2747, allocations: 204.5 kB / 369.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003823/0.2785, allocations: 2.137 MB / 371.5 MB, free: 8.484 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.515e-05/0.2785, allocations: 0 / 371.5 MB, free: 8.484 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.23e-05/0.2786, allocations: 0 / 371.5 MB, free: 8.484 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.462e-06/0.2786, allocations: 0 / 371.5 MB, free: 8.484 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002715/0.2813, allocations: 0.8997 MB / 372.4 MB, free: 7.582 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.54e-05/0.2814, allocations: 0 / 372.4 MB, free: 7.582 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.755e-05/0.2814, allocations: 0 / 372.4 MB, free: 7.582 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.604e-05/0.2814, allocations: 7.938 kB / 372.4 MB, free: 7.574 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.202e-05/0.2815, allocations: 3.984 kB / 372.4 MB, free: 7.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.892e-06/0.2815, allocations: 0 / 372.4 MB, free: 7.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001585/0.2831, allocations: 0.7999 MB / 373.2 MB, free: 6.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.487e-06/0.2831, allocations: 3.984 kB / 373.2 MB, free: 6.766 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.094e-05/0.2831, allocations: 29.7 kB / 373.3 MB, free: 6.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000481/0.2836, allocations: 259.4 kB / 373.5 MB, free: 6.477 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.507e-06/0.2837, allocations: 3.938 kB / 373.5 MB, free: 6.473 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.029e-06/0.2837, allocations: 4 kB / 373.5 MB, free: 6.469 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.291e-06/0.2837, allocations: 0 / 373.5 MB, free: 6.469 MB / 298.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.0004671/0.2842, allocations: 421 kB / 373.9 MB, free: 6.004 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.2842, allocations: 12.03 kB / 373.9 MB, free: 5.992 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.236e-05/0.2843, allocations: 4 kB / 373.9 MB, free: 5.988 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.2844, allocations: 167.1 kB / 374.1 MB, free: 5.785 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.2844, allocations: 0 / 374.1 MB, free: 5.785 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.819e-06/0.2844, allocations: 0 / 374.1 MB, free: 5.785 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.349e-05/0.2845, allocations: 29.7 kB / 374.1 MB, free: 5.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.392e-06/0.2846, allocations: 3.984 kB / 374.1 MB, free: 5.746 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.481e-06/0.2846, allocations: 0 / 374.1 MB, free: 5.746 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.389e-06/0.2846, allocations: 3.953 kB / 374.1 MB, free: 5.742 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.701e-05/0.2846, allocations: 0 / 374.1 MB, free: 5.742 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001642/0.2848, allocations: 157.6 kB / 374.3 MB, free: 5.539 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.932e-05/0.2848, allocations: 14.58 kB / 374.3 MB, free: 5.516 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.138e-05/0.2849, allocations: 4 kB / 374.3 MB, free: 5.512 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.418e-05/0.2849, allocations: 60.36 kB / 374.4 MB, free: 5.438 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.859e-06/0.2849, allocations: 0 / 374.4 MB, free: 5.438 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001744/0.2851, allocations: 63.25 kB / 374.4 MB, free: 5.363 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.155e-05/0.2852, allocations: 85.09 kB / 374.5 MB, free: 5.262 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.444e-05/0.2853, allocations: 97.94 kB / 374.6 MB, free: 5.156 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.2853, allocations: 25.7 kB / 374.6 MB, free: 5.125 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.33e-05/0.2854, allocations: 150.6 kB / 374.8 MB, free: 4.977 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/0.2854, allocations: 4 kB / 374.8 MB, free: 4.973 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.736e-06/0.2854, allocations: 0 / 374.8 MB, free: 4.973 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.2856, allocations: 310.8 kB / 375.1 MB, free: 4.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.437e-05/0.2856, allocations: 4 kB / 375.1 MB, free: 4.656 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.801e-06/0.2856, allocations: 3.938 kB / 375.1 MB, free: 4.652 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.749e-05/0.2857, allocations: 29.77 kB / 375.1 MB, free: 4.617 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.09e-06/0.2857, allocations: 0 / 375.1 MB, free: 4.617 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001015/0.2858, allocations: 63.39 kB / 375.2 MB, free: 4.543 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.2858, allocations: 33.7 kB / 375.2 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.011e-06/0.2859, allocations: 0 / 375.2 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.2859, allocations: 0 / 375.2 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.385e-06/0.2859, allocations: 0 / 375.2 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.7e-06/0.2859, allocations: 3.938 kB / 375.2 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.762e-05/0.2859, allocations: 0 / 375.2 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.266e-06/0.2859, allocations: 3.953 kB / 375.2 MB, free: 4.496 MB / 298.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.0001104/0.2861, allocations: 143.6 kB / 375.4 MB, free: 4.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.279e-05/0.2861, allocations: 3.984 kB / 375.4 MB, free: 4.336 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.374e-06/0.2861, allocations: 3.125 kB / 375.4 MB, free: 4.336 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.979e-06/0.2861, allocations: 3.938 kB / 375.4 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.04e-06/0.2861, allocations: 0 / 375.4 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.041e-06/0.2861, allocations: 4 kB / 375.4 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001242/0.2863, allocations: 145.6 kB / 375.5 MB, free: 4.137 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-06/0.2863, allocations: 0 / 375.5 MB, free: 4.137 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.16e-06/0.2863, allocations: 0 / 375.5 MB, free: 4.137 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.467e-06/0.2863, allocations: 7.984 kB / 375.5 MB, free: 4.129 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.359e-06/0.2863, allocations: 0 / 375.5 MB, free: 4.129 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.768e-06/0.2863, allocations: 8 kB / 375.5 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.56e-06/0.2864, allocations: 0 / 375.5 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001214/0.2865, allocations: 86.8 kB / 375.6 MB, free: 4.012 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.506e-05/0.2866, allocations: 85.09 kB / 375.7 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.2866, allocations: 0 / 375.7 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.244e-05/0.2866, allocations: 3.938 kB / 375.7 MB, free: 3.906 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.48e-05/0.2866, allocations: 4.031 kB / 375.7 MB, free: 3.902 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.157e-06/0.2866, allocations: 0 / 375.7 MB, free: 3.902 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.508e-05/0.2867, allocations: 83.28 kB / 375.8 MB, free: 3.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.25e-07/0.2867, allocations: 0 / 375.8 MB, free: 3.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005364/0.2873, allocations: 136.7 kB / 375.9 MB, free: 3.688 MB / 298.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.0008331/0.2881, allocations: 373.7 kB / 376.3 MB, free: 3.324 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001078/0.2882, allocations: 59.39 kB / 376.4 MB, free: 3.254 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.388e-06/0.2882, allocations: 0 / 376.4 MB, free: 3.254 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.6e-05/0.2883, allocations: 55.41 kB / 376.4 MB, free: 3.188 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000101/0.2884, allocations: 4.078 kB / 376.4 MB, free: 3.184 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000194/0.2886, allocations: 116.4 kB / 376.5 MB, free: 3.039 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.289, allocations: 0.6692 MB / 377.2 MB, free: 2.344 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.408e-05/0.289, allocations: 15.38 kB / 377.2 MB, free: 2.328 MB / 298.7 MB Notification: Performance of SimCode: time 1.272e-06/0.289, allocations: 0 / 377.2 MB, free: 2.328 MB / 298.7 MB Notification: Performance of Templates: time 0.007808/0.2968, allocations: 3.897 MB / 381.1 MB, free: 14.42 MB / 314.7 MB