Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestScalarFunctions.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.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadModel(ModelicaTest): time 2.252/2.252, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.906e-05/2.933e-05, allocations: 4 kB / 309.7 MB, free: 1.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3268, allocations: 54.86 MB / 364.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.4524, allocations: 80.58 MB / 445.1 MB, free: 15.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.4527, allocations: 65.12 kB / 445.2 MB, free: 15.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03068/0.4834, allocations: 6.324 MB / 451.5 MB, free: 9.547 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4834, allocations: 0 / 451.5 MB, free: 9.547 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.4834, allocations: 4 kB / 451.5 MB, free: 9.543 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.0003754/0.4838, allocations: 372.1 kB / 451.9 MB, free: 9.129 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.4839, allocations: 12.03 kB / 451.9 MB, free: 9.117 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.869e-05/0.4839, allocations: 3.953 kB / 451.9 MB, free: 9.113 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.4841, allocations: 159.1 kB / 452 MB, free: 8.918 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.4841, allocations: 0 / 452 MB, free: 8.918 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.4841, allocations: 0.9375 kB / 452 MB, free: 8.918 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.633e-05/0.4842, allocations: 33.7 kB / 452.1 MB, free: 8.879 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.699e-06/0.4842, allocations: 0 / 452.1 MB, free: 8.879 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.01e-06/0.4843, allocations: 4 kB / 452.1 MB, free: 8.875 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.064e-06/0.4843, allocations: 0 / 452.1 MB, free: 8.875 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.94e-05/0.4843, allocations: 11.88 kB / 452.1 MB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001592/0.4845, allocations: 149.6 kB / 452.2 MB, free: 8.668 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.103e-05/0.4845, allocations: 14.58 kB / 452.3 MB, free: 8.645 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.035e-05/0.4846, allocations: 8.953 kB / 452.3 MB, free: 8.633 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.361e-06/0.4846, allocations: 0 / 452.3 MB, free: 8.633 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.044e-05/0.4847, allocations: 65.3 kB / 452.3 MB, free: 8.555 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.018e-06/0.4847, allocations: 0 / 452.3 MB, free: 8.555 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001743/0.4849, allocations: 67.33 kB / 452.4 MB, free: 8.477 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.4849, allocations: 77.11 kB / 452.5 MB, free: 8.383 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.263e-05/0.485, allocations: 85 kB / 452.5 MB, free: 8.293 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.485, allocations: 25.7 kB / 452.6 MB, free: 8.262 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.041e-05/0.4851, allocations: 150.6 kB / 452.7 MB, free: 8.113 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.537e-05/0.4851, allocations: 0 / 452.7 MB, free: 8.113 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.984e-06/0.4851, allocations: 8.031 kB / 452.7 MB, free: 8.105 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.4853, allocations: 318.8 kB / 453 MB, free: 7.785 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.046e-05/0.4853, allocations: 0 / 453 MB, free: 7.785 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.929e-06/0.4854, allocations: 1.406 kB / 453 MB, free: 7.785 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.187e-05/0.4854, allocations: 29.7 kB / 453.1 MB, free: 7.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4854, allocations: 0 / 453.1 MB, free: 7.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001078/0.4855, allocations: 63.33 kB / 453.1 MB, free: 7.676 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.351e-05/0.4856, allocations: 35.11 kB / 453.2 MB, free: 7.637 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.4856, allocations: 96 / 453.2 MB, free: 7.637 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.4856, allocations: 4 kB / 453.2 MB, free: 7.633 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.555e-06/0.4857, allocations: 0 / 453.2 MB, free: 7.633 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.411e-06/0.4857, allocations: 0 / 453.2 MB, free: 7.633 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.865e-05/0.4857, allocations: 0 / 453.2 MB, free: 7.633 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.4857, allocations: 4 kB / 453.2 MB, free: 7.629 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.0001092/0.4858, allocations: 134.6 kB / 453.3 MB, free: 7.484 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.039e-05/0.4859, allocations: 0 / 453.3 MB, free: 7.484 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.035e-05/0.4859, allocations: 11.08 kB / 453.3 MB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.043e-06/0.4859, allocations: 0 / 453.3 MB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.4859, allocations: 7.938 kB / 453.3 MB, free: 7.465 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.069e-06/0.4859, allocations: 0 / 453.3 MB, free: 7.465 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001332/0.4861, allocations: 149.6 kB / 453.5 MB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.851e-06/0.4861, allocations: 3.984 kB / 453.5 MB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.239e-06/0.4861, allocations: 0 / 453.5 MB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.262e-06/0.4861, allocations: 4 kB / 453.5 MB, free: 7.262 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.558e-06/0.4861, allocations: 3.938 kB / 453.5 MB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.425e-06/0.4861, allocations: 4 kB / 453.5 MB, free: 7.254 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.764e-06/0.4861, allocations: 1.328 kB / 453.5 MB, free: 7.254 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001434/0.4863, allocations: 102.7 kB / 453.6 MB, free: 7.129 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.01e-05/0.4864, allocations: 77.11 kB / 453.7 MB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.4864, allocations: 0 / 453.7 MB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.399e-05/0.4864, allocations: 0 / 453.7 MB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.381e-05/0.4864, allocations: 0 / 453.7 MB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.969e-06/0.4865, allocations: 7.984 kB / 453.7 MB, free: 7.027 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.147e-05/0.4865, allocations: 75.28 kB / 453.7 MB, free: 6.953 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.33e-07/0.4865, allocations: 0 / 453.7 MB, free: 6.953 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002643/0.4868, allocations: 4.031 kB / 453.7 MB, free: 6.949 MB / 378.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.0003218/0.4871, allocations: 123.9 kB / 453.9 MB, free: 6.828 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000114/0.4873, allocations: 55.41 kB / 453.9 MB, free: 6.762 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.118e-06/0.4873, allocations: 0 / 453.9 MB, free: 6.762 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.762e-05/0.4873, allocations: 59.41 kB / 454 MB, free: 6.691 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001025/0.4875, allocations: 11.02 kB / 454 MB, free: 6.684 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001748/0.4877, allocations: 78.88 kB / 454.1 MB, free: 6.578 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.488, allocations: 0.6692 MB / 454.7 MB, free: 5.883 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.467e-05/0.488, allocations: 7.438 kB / 454.7 MB, free: 5.875 MB / 378.7 MB Notification: Performance of SimCode: time 1.655e-06/0.488, allocations: 0 / 454.7 MB, free: 5.875 MB / 378.7 MB Notification: Performance of Templates: time 0.0021/0.4902, allocations: 452.4 kB / 455.2 MB, free: 5.434 MB / 378.7 MB