Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.306/2.306, allocations: 234.9 MB / 250.5 MB, free: 10.55 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005884/0.0005885, allocations: 12 kB / 314.4 MB, free: 10.49 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3343, allocations: 54.87 MB / 369.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0006749/0.335, allocations: 224.4 kB / 369.5 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002351/0.3374, allocations: 1.321 MB / 370.8 MB, free: 9.289 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.208e-05/0.3374, allocations: 0 / 370.8 MB, free: 9.289 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.547e-05/0.3375, allocations: 0 / 370.8 MB, free: 9.289 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.762e-05/0.3375, allocations: 4 kB / 370.8 MB, free: 9.285 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008272/0.3383, allocations: 155.6 kB / 371 MB, free: 9.133 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.703e-05/0.3384, allocations: 3.984 kB / 371 MB, free: 9.129 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.663e-05/0.3385, allocations: 3.984 kB / 371 MB, free: 9.125 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.064e-05/0.3385, allocations: 4 kB / 371 MB, free: 9.121 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.356e-05/0.3385, allocations: 4 kB / 371 MB, free: 9.117 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.3386, allocations: 0 / 371 MB, free: 9.117 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005782/0.3392, allocations: 259.6 kB / 371.2 MB, free: 8.863 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.136e-05/0.3392, allocations: 0 / 371.2 MB, free: 8.863 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.721e-05/0.3392, allocations: 33.62 kB / 371.3 MB, free: 8.824 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001932/0.3394, allocations: 83.83 kB / 371.4 MB, free: 8.742 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.3394, allocations: 0 / 371.4 MB, free: 8.742 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3394, allocations: 0 / 371.4 MB, free: 8.742 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.3395, allocations: 0 / 371.4 MB, free: 8.742 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003603/0.3398, allocations: 335.3 kB / 371.7 MB, free: 8.367 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.3399, allocations: 12.03 kB / 371.7 MB, free: 8.355 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.124e-05/0.3399, allocations: 34.56 kB / 371.7 MB, free: 8.312 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.405e-05/0.34, allocations: 0 / 371.7 MB, free: 8.312 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.538e-05/0.3401, allocations: 163 kB / 371.9 MB, free: 8.113 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.3401, allocations: 0 / 371.9 MB, free: 8.113 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.307e-05/0.3401, allocations: 7.984 kB / 371.9 MB, free: 8.105 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001132/0.3402, allocations: 37.64 kB / 371.9 MB, free: 8.062 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.3403, allocations: 0 / 371.9 MB, free: 8.062 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.3403, allocations: 7.953 kB / 371.9 MB, free: 8.055 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.3403, allocations: 4 kB / 371.9 MB, free: 8.051 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.986e-05/0.3404, allocations: 11.98 kB / 372 MB, free: 8.039 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003878/0.3407, allocations: 233 kB / 372.2 MB, free: 7.762 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.703e-05/0.3408, allocations: 22.52 kB / 372.2 MB, free: 7.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.3408, allocations: 7.984 kB / 372.2 MB, free: 7.723 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.3409, allocations: 30.56 kB / 372.2 MB, free: 7.684 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.523e-06/0.3409, allocations: 4 kB / 372.2 MB, free: 7.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001543/0.3411, allocations: 33.77 kB / 372.3 MB, free: 7.641 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/0.3411, allocations: 51.41 kB / 372.3 MB, free: 7.578 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.275e-05/0.3412, allocations: 97.86 kB / 372.4 MB, free: 7.473 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.3412, allocations: 29.69 kB / 372.5 MB, free: 7.438 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.653e-05/0.3413, allocations: 155.5 kB / 372.6 MB, free: 7.285 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.102e-06/0.3413, allocations: 0 / 372.6 MB, free: 7.285 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-06/0.3413, allocations: 256 / 372.6 MB, free: 7.285 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.3415, allocations: 322.8 kB / 372.9 MB, free: 6.961 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.852e-05/0.3415, allocations: 3.938 kB / 372.9 MB, free: 6.957 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.159e-05/0.3415, allocations: 18.58 kB / 372.9 MB, free: 6.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.71e-05/0.3416, allocations: 7.984 kB / 372.9 MB, free: 6.922 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.3416, allocations: 0 / 372.9 MB, free: 6.922 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.936e-05/0.3417, allocations: 57.48 kB / 373 MB, free: 6.859 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.3417, allocations: 7.953 kB / 373 MB, free: 6.852 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.3417, allocations: 4 kB / 373 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.3418, allocations: 0 / 373 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.07e-05/0.3418, allocations: 7.984 kB / 373 MB, free: 6.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.3419, allocations: 0 / 373 MB, free: 6.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.673e-05/0.3419, allocations: 7.938 kB / 373 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.3419, allocations: 0 / 373 MB, free: 6.832 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 8.113e-05/0.342, allocations: 113.8 kB / 373.1 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.342, allocations: 4.094 kB / 373.1 MB, free: 6.707 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001373/0.3422, allocations: 48.8 kB / 373.2 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3422, allocations: 3.984 kB / 373.2 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3422, allocations: 0 / 373.2 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.3422, allocations: 0 / 373.2 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000171/0.3424, allocations: 157.7 kB / 373.4 MB, free: 6.449 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/0.3424, allocations: 0 / 373.4 MB, free: 6.449 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.112e-06/0.3424, allocations: 4.031 kB / 373.4 MB, free: 6.445 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3425, allocations: 3.938 kB / 373.4 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.3425, allocations: 0 / 373.4 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.3425, allocations: 7.953 kB / 373.4 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3425, allocations: 0 / 373.4 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001097/0.3426, allocations: 131.5 kB / 373.5 MB, free: 6.289 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.081e-05/0.3427, allocations: 81.09 kB / 373.6 MB, free: 6.191 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.3427, allocations: 0 / 373.6 MB, free: 6.191 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.257e-05/0.3428, allocations: 4.031 kB / 373.6 MB, free: 6.188 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.58e-05/0.3428, allocations: 3.953 kB / 373.6 MB, free: 6.184 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.3428, allocations: 8 kB / 373.6 MB, free: 6.176 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.794e-05/0.3429, allocations: 75.28 kB / 373.7 MB, free: 6.102 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3429, allocations: 0 / 373.7 MB, free: 6.102 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003737/0.3433, allocations: 43.98 kB / 373.7 MB, free: 6.059 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: 0 () * Number of discrete states: 0 () * 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: 0 * Record equations: 1 * 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.0006501/0.3439, allocations: 0.7009 MB / 374.4 MB, free: 5.332 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.03e-05/0.344, allocations: 11.94 kB / 374.4 MB, free: 5.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.344, allocations: 0 / 374.4 MB, free: 5.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.015e-05/0.3441, allocations: 29.7 kB / 374.5 MB, free: 5.285 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001582/0.3443, allocations: 3.953 kB / 374.5 MB, free: 5.281 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004925/0.3448, allocations: 158.3 kB / 374.6 MB, free: 5.082 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.345, allocations: 0.677 MB / 375.3 MB, free: 4.379 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.877e-05/0.3451, allocations: 7.438 kB / 375.3 MB, free: 4.371 MB / 298.7 MB Notification: Performance of SimCode: time 7.72e-07/0.3451, allocations: 7.938 kB / 375.3 MB, free: 4.363 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.27/2.615, allocations: 1.147 MB / 376.4 MB, free: 3.215 MB / 298.7 MB