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.244/2.244, allocations: 234.9 MB / 250.5 MB, free: 10.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004427/0.0004429, allocations: 12 kB / 314.3 MB, free: 10.51 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.302, allocations: 54.87 MB / 369.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0005735/0.3027, allocations: 216.4 kB / 369.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00218/0.3049, allocations: 1.339 MB / 370.7 MB, free: 9.273 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.952e-05/0.3049, allocations: 3.938 kB / 370.7 MB, free: 9.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.269e-06/0.3049, allocations: 4 kB / 370.7 MB, free: 9.266 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.571e-06/0.305, allocations: 0 / 370.7 MB, free: 9.266 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005302/0.3055, allocations: 87.7 kB / 370.8 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.627e-05/0.3055, allocations: 0 / 370.8 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.795e-05/0.3056, allocations: 0 / 370.8 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.372e-05/0.3056, allocations: 0 / 370.8 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.411e-05/0.3056, allocations: 3.984 kB / 370.8 MB, free: 9.176 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.716e-06/0.3057, allocations: 3.984 kB / 370.8 MB, free: 9.172 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001825/0.3059, allocations: 43.91 kB / 370.9 MB, free: 9.129 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.811e-06/0.3059, allocations: 0 / 370.9 MB, free: 9.129 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.658e-05/0.3059, allocations: 29.7 kB / 370.9 MB, free: 9.094 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.196e-05/0.306, allocations: 23.91 kB / 370.9 MB, free: 9.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.632e-06/0.306, allocations: 0 / 370.9 MB, free: 9.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.927e-06/0.306, allocations: 0 / 370.9 MB, free: 9.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.717e-06/0.3061, allocations: 0 / 370.9 MB, free: 9.07 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.0003475/0.3064, allocations: 345.1 kB / 371.3 MB, free: 8.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3065, allocations: 12.03 kB / 371.3 MB, free: 8.668 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.795e-05/0.3065, allocations: 4 kB / 371.3 MB, free: 8.664 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.3066, allocations: 159.1 kB / 371.4 MB, free: 8.469 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.3067, allocations: 0 / 371.4 MB, free: 8.469 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.173e-05/0.3067, allocations: 4 kB / 371.4 MB, free: 8.465 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.167e-05/0.3068, allocations: 33.69 kB / 371.5 MB, free: 8.426 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3068, allocations: 7.938 kB / 371.5 MB, free: 8.418 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.779e-06/0.3068, allocations: 0 / 371.5 MB, free: 8.418 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.3068, allocations: 0 / 371.5 MB, free: 8.418 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.618e-05/0.3069, allocations: 0 / 371.5 MB, free: 8.418 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001568/0.307, allocations: 153.6 kB / 371.6 MB, free: 8.219 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.9e-05/0.3071, allocations: 14.58 kB / 371.6 MB, free: 8.195 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.013e-06/0.3071, allocations: 4 kB / 371.6 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.833e-05/0.3072, allocations: 64.34 kB / 371.7 MB, free: 8.113 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.877e-06/0.3072, allocations: 0 / 371.7 MB, free: 8.113 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001762/0.3074, allocations: 75.2 kB / 371.8 MB, free: 8.027 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.365e-05/0.3075, allocations: 77.11 kB / 371.9 MB, free: 7.934 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.988e-05/0.3075, allocations: 89.86 kB / 371.9 MB, free: 7.836 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.3076, allocations: 25.7 kB / 372 MB, free: 7.805 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.321e-05/0.3076, allocations: 154.7 kB / 372.1 MB, free: 7.652 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.403e-05/0.3077, allocations: 3.938 kB / 372.1 MB, free: 7.648 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-06/0.3077, allocations: 3.938 kB / 372.1 MB, free: 7.645 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3078, allocations: 314.8 kB / 372.4 MB, free: 7.328 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.718e-06/0.3079, allocations: 4 kB / 372.4 MB, free: 7.324 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.517e-06/0.3079, allocations: 0 / 372.4 MB, free: 7.324 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.775e-05/0.3079, allocations: 25.7 kB / 372.5 MB, free: 7.293 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.203e-06/0.3079, allocations: 0 / 372.5 MB, free: 7.293 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001009/0.3081, allocations: 67.47 kB / 372.5 MB, free: 7.215 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.408e-05/0.3081, allocations: 37.69 kB / 372.6 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.644e-06/0.3081, allocations: 0 / 372.6 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.3081, allocations: 0 / 372.6 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.241e-06/0.3082, allocations: 0 / 372.6 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.245e-06/0.3082, allocations: 7.891 kB / 372.6 MB, free: 7.164 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.913e-05/0.3082, allocations: 0 / 372.6 MB, free: 7.164 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.466e-06/0.3082, allocations: 0 / 372.6 MB, free: 7.164 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.0001133/0.3083, allocations: 135.5 kB / 372.7 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.018e-05/0.3084, allocations: 4.031 kB / 372.7 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.579e-06/0.3084, allocations: 3.125 kB / 372.7 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.357e-06/0.3084, allocations: 0 / 372.7 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.009e-06/0.3084, allocations: 7.984 kB / 372.7 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.3084, allocations: 3.953 kB / 372.7 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001246/0.3086, allocations: 145.7 kB / 372.9 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3086, allocations: 0 / 372.9 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.175e-06/0.3086, allocations: 0 / 372.9 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.3086, allocations: 0 / 372.9 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.3086, allocations: 4 kB / 372.9 MB, free: 6.805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.921e-06/0.3086, allocations: 0 / 372.9 MB, free: 6.805 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.699e-06/0.3086, allocations: 4 kB / 372.9 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001255/0.3088, allocations: 90.81 kB / 373 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.714e-05/0.3088, allocations: 81.11 kB / 373 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.3089, allocations: 0 / 373 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.456e-05/0.3089, allocations: 7.922 kB / 373.1 MB, free: 6.582 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.693e-05/0.3089, allocations: 4 kB / 373.1 MB, free: 6.578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.306e-06/0.3089, allocations: 0 / 373.1 MB, free: 6.578 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.998e-05/0.309, allocations: 87.31 kB / 373.1 MB, free: 6.492 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.804e-06/0.309, allocations: 0 / 373.1 MB, free: 6.492 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000279/0.3093, allocations: 11.94 kB / 373.2 MB, free: 6.48 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.0003563/0.3096, allocations: 142.7 kB / 373.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.921e-05/0.3098, allocations: 59.41 kB / 373.4 MB, free: 6.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.708e-06/0.3098, allocations: 0 / 373.4 MB, free: 6.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.187e-05/0.3098, allocations: 63.45 kB / 373.4 MB, free: 6.195 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.67e-05/0.31, allocations: 7.891 kB / 373.4 MB, free: 6.188 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001861/0.3102, allocations: 104.5 kB / 373.5 MB, free: 6.055 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.3105, allocations: 0.6731 MB / 374.2 MB, free: 5.355 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.172e-05/0.3105, allocations: 11.38 kB / 374.2 MB, free: 5.344 MB / 298.7 MB Notification: Performance of SimCode: time 1.34e-06/0.3106, allocations: 0 / 374.2 MB, free: 5.344 MB / 298.7 MB Notification: Performance of Templates: time 0.002391/0.313, allocations: 0.6439 MB / 374.9 MB, free: 4.699 MB / 298.7 MB