Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.264/2.264, allocations: 234.9 MB / 250.4 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004197/0.0004198, allocations: 8 kB / 314.4 MB, free: 9.656 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3506, allocations: 54.86 MB / 369.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0006626/0.3513, allocations: 220.4 kB / 369.5 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002476/0.3538, allocations: 1.335 MB / 370.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.065e-05/0.3539, allocations: 3.938 kB / 370.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.072e-05/0.3539, allocations: 4 kB / 370.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.31e-06/0.3539, allocations: 0 / 370.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006355/0.3546, allocations: 87.7 kB / 370.9 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.217e-05/0.3546, allocations: 4 kB / 370.9 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.884e-05/0.3547, allocations: 0 / 370.9 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.579e-05/0.3547, allocations: 0 / 370.9 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.728e-05/0.3547, allocations: 0 / 370.9 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.405e-06/0.3547, allocations: 3.938 kB / 370.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002339/0.355, allocations: 39.95 kB / 371 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.981e-06/0.355, allocations: 0 / 371 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.645e-05/0.355, allocations: 25.7 kB / 371 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001013/0.3552, allocations: 31.95 kB / 371 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.3552, allocations: 0 / 371 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3552, allocations: 0 / 371 MB, free: 10.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.3552, allocations: 4 kB / 371 MB, free: 10.99 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.000317/0.3555, allocations: 341.1 kB / 371.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.3556, allocations: 12.03 kB / 371.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.229e-05/0.3556, allocations: 30.56 kB / 371.4 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.693e-05/0.3557, allocations: 7.844 kB / 371.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.985e-05/0.3558, allocations: 159.1 kB / 371.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.3558, allocations: 0 / 371.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.3558, allocations: 0 / 371.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.654e-05/0.3559, allocations: 33.66 kB / 371.6 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.3559, allocations: 4 kB / 371.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.356, allocations: 3.984 kB / 371.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.356, allocations: 0 / 371.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.572e-05/0.356, allocations: 8 kB / 371.6 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001513/0.3562, allocations: 149.6 kB / 371.7 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.4e-05/0.3562, allocations: 18.52 kB / 371.8 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.026e-06/0.3562, allocations: 0 / 371.8 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.176e-05/0.3563, allocations: 64.36 kB / 371.8 MB, free: 9.992 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.3563, allocations: 0 / 371.8 MB, free: 9.992 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001898/0.3565, allocations: 67.34 kB / 371.9 MB, free: 9.914 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.3566, allocations: 81.11 kB / 372 MB, free: 9.816 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.423e-05/0.3566, allocations: 89.86 kB / 372.1 MB, free: 9.719 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.3567, allocations: 25.7 kB / 372.1 MB, free: 9.688 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.219e-05/0.3567, allocations: 158.4 kB / 372.2 MB, free: 9.531 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.3567, allocations: 0 / 372.2 MB, free: 9.531 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-06/0.3568, allocations: 128 / 372.2 MB, free: 9.531 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.3569, allocations: 318.8 kB / 372.6 MB, free: 9.211 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.043e-05/0.3569, allocations: 0 / 372.6 MB, free: 9.211 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.145e-05/0.3569, allocations: 3.984 kB / 372.6 MB, free: 9.207 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.216e-05/0.357, allocations: 29.7 kB / 372.6 MB, free: 9.172 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.357, allocations: 0 / 372.6 MB, free: 9.172 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.812e-05/0.3571, allocations: 59.41 kB / 372.6 MB, free: 9.102 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.015e-05/0.3571, allocations: 33.7 kB / 372.7 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3571, allocations: 0 / 372.7 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.3572, allocations: 4.094 kB / 372.7 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.636e-06/0.3572, allocations: 3.984 kB / 372.7 MB, free: 9.055 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.3572, allocations: 3.953 kB / 372.7 MB, free: 9.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.987e-05/0.3572, allocations: 0 / 372.7 MB, free: 9.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.3572, allocations: 4 kB / 372.7 MB, free: 9.047 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 9.286e-05/0.3573, allocations: 131.5 kB / 372.8 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.738e-06/0.3574, allocations: 3.938 kB / 372.8 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.057e-05/0.3574, allocations: 3.125 kB / 372.8 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.3574, allocations: 4 kB / 372.8 MB, free: 8.895 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3574, allocations: 7.984 kB / 372.8 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3574, allocations: 3.953 kB / 372.8 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.3575, allocations: 145.7 kB / 373 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3576, allocations: 0 / 373 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.142e-06/0.3576, allocations: 0 / 373 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3576, allocations: 0 / 373 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.3576, allocations: 8 kB / 373 MB, free: 8.684 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3576, allocations: 3.938 kB / 373 MB, free: 8.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3576, allocations: 0 / 373 MB, free: 8.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001204/0.3577, allocations: 98.81 kB / 373.1 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.973e-05/0.3578, allocations: 77.11 kB / 373.2 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.3578, allocations: 0 / 373.2 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.188e-05/0.3578, allocations: 0 / 373.2 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.647e-05/0.3579, allocations: 0 / 373.2 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-06/0.3579, allocations: 4 kB / 373.2 MB, free: 8.461 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.363e-05/0.3579, allocations: 79.28 kB / 373.3 MB, free: 8.383 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3579, allocations: 3.938 kB / 373.3 MB, free: 8.379 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002702/0.3582, allocations: 24.02 kB / 373.3 MB, free: 8.355 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.0006943/0.3589, allocations: 0.6744 MB / 374 MB, free: 7.656 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.359, allocations: 67.42 kB / 374 MB, free: 7.578 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3591, allocations: 0 / 374 MB, free: 7.578 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.154e-05/0.3591, allocations: 59.34 kB / 374.1 MB, free: 7.508 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.449e-05/0.3592, allocations: 0 / 374.1 MB, free: 7.508 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003403/0.3596, allocations: 139.1 kB / 374.2 MB, free: 7.328 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.3598, allocations: 0.6731 MB / 374.9 MB, free: 6.629 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.573e-05/0.3598, allocations: 7.438 kB / 374.9 MB, free: 6.621 MB / 298.7 MB Notification: Performance of SimCode: time 1.303e-06/0.3599, allocations: 4 kB / 374.9 MB, free: 6.617 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.36/2.72, allocations: 0.7823 MB / 375.7 MB, free: 5.832 MB / 298.7 MB