Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.12/2.12, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004469/0.000447, allocations: 16 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3507, allocations: 48.7 MB / 331.3 MB, free: 6.516 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0007145/0.3515, allocations: 224.9 kB / 331.5 MB, free: 6.426 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002321/0.3538, allocations: 1.319 MB / 332.8 MB, free: 5.711 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.821e-05/0.3539, allocations: 0 / 332.8 MB, free: 5.711 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.192e-05/0.3539, allocations: 1.281 kB / 332.8 MB, free: 5.711 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.065e-05/0.354, allocations: 0 / 332.8 MB, free: 5.711 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008535/0.3549, allocations: 140.5 kB / 333 MB, free: 5.656 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 3.978e-05/0.3549, allocations: 4.125 kB / 333 MB, free: 5.656 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.658e-05/0.355, allocations: 4.656 kB / 333 MB, free: 5.652 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.183e-05/0.355, allocations: 10.95 kB / 333 MB, free: 5.645 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.646e-05/0.3551, allocations: 3.25 kB / 333 MB, free: 5.645 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.3551, allocations: 1.344 kB / 333 MB, free: 5.645 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006064/0.3557, allocations: 255.8 kB / 333.2 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.117e-05/0.3557, allocations: 1.844 kB / 333.2 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.048e-05/0.3558, allocations: 26.45 kB / 333.3 MB, free: 5.551 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002137/0.356, allocations: 84.7 kB / 333.3 MB, free: 5.539 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.356, allocations: 0 / 333.3 MB, free: 5.539 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.356, allocations: 0 / 333.3 MB, free: 5.539 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.356, allocations: 4 kB / 333.3 MB, free: 5.535 MB / 266.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.0003124/0.3563, allocations: 336.4 kB / 333.7 MB, free: 5.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.3564, allocations: 9.469 kB / 333.7 MB, free: 5.18 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.166e-05/0.3564, allocations: 31.88 kB / 333.7 MB, free: 5.141 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.687e-05/0.3565, allocations: 1.125 kB / 333.7 MB, free: 5.141 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.925e-05/0.3566, allocations: 164.1 kB / 333.9 MB, free: 4.941 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.3566, allocations: 2.625 kB / 333.9 MB, free: 4.941 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.3566, allocations: 0 / 333.9 MB, free: 4.941 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001187/0.3567, allocations: 42.27 kB / 333.9 MB, free: 4.902 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.3567, allocations: 4 kB / 333.9 MB, free: 4.898 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.3568, allocations: 0.9688 kB / 333.9 MB, free: 4.898 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.3568, allocations: 0 / 333.9 MB, free: 4.898 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.907e-05/0.3568, allocations: 5.484 kB / 333.9 MB, free: 4.898 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003621/0.3572, allocations: 244.7 kB / 334.2 MB, free: 4.625 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.02e-05/0.3573, allocations: 19.78 kB / 334.2 MB, free: 4.598 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.3573, allocations: 2.688 kB / 334.2 MB, free: 4.598 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.708e-05/0.3573, allocations: 38.5 kB / 334.2 MB, free: 4.551 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.3573, allocations: 3.938 kB / 334.2 MB, free: 4.547 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001493/0.3575, allocations: 38.05 kB / 334.3 MB, free: 4.512 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.312e-05/0.3575, allocations: 51.41 kB / 334.3 MB, free: 4.449 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.791e-05/0.3576, allocations: 98.06 kB / 334.4 MB, free: 4.348 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.3576, allocations: 27.48 kB / 334.4 MB, free: 4.316 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.977e-05/0.3576, allocations: 156.6 kB / 334.6 MB, free: 4.164 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.668e-06/0.3577, allocations: 13.84 kB / 334.6 MB, free: 4.152 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-06/0.3577, allocations: 0 / 334.6 MB, free: 4.152 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.295e-05/0.3577, allocations: 313 kB / 334.9 MB, free: 3.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.607e-05/0.3578, allocations: 2.062 kB / 334.9 MB, free: 3.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.168e-05/0.3578, allocations: 26.8 kB / 334.9 MB, free: 3.809 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.566e-05/0.3578, allocations: 7.75 kB / 334.9 MB, free: 3.805 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3579, allocations: 4 kB / 335 MB, free: 3.801 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.801e-05/0.3579, allocations: 45.34 kB / 335 MB, free: 3.766 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.358, allocations: 4.812 kB / 335 MB, free: 3.766 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.358, allocations: 2.594 kB / 335 MB, free: 3.766 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.358, allocations: 1.406 kB / 335 MB, free: 3.766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.604e-05/0.3581, allocations: 8.703 kB / 335 MB, free: 3.762 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.3581, allocations: 2 kB / 335 MB, free: 3.762 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.572e-05/0.3581, allocations: 9.281 kB / 335 MB, free: 3.754 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.3582, allocations: 5.812 kB / 335 MB, free: 3.75 MB / 266.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 6.042e-05/0.3582, allocations: 113.5 kB / 335.1 MB, free: 3.633 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.738e-05/0.3583, allocations: 0 / 335.1 MB, free: 3.633 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001361/0.3584, allocations: 48.12 kB / 335.2 MB, free: 3.59 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.3584, allocations: 0 / 335.2 MB, free: 3.59 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3584, allocations: 1.438 kB / 335.2 MB, free: 3.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.3585, allocations: 0.6094 kB / 335.2 MB, free: 3.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001395/0.3586, allocations: 154.6 kB / 335.3 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.3586, allocations: 0.9062 kB / 335.3 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.212e-06/0.3586, allocations: 0 / 335.3 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.3586, allocations: 2.188 kB / 335.3 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.3587, allocations: 0 / 335.3 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3587, allocations: 0 / 335.3 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3587, allocations: 1.984 kB / 335.3 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.591e-05/0.3588, allocations: 136.3 kB / 335.5 MB, free: 3.254 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.372e-05/0.3588, allocations: 83.08 kB / 335.6 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.3588, allocations: 0.6094 kB / 335.6 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.538e-05/0.3589, allocations: 2.047 kB / 335.6 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.962e-05/0.3589, allocations: 1.891 kB / 335.6 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.543e-06/0.359, allocations: 1.156 kB / 335.6 MB, free: 3.156 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.372e-05/0.359, allocations: 76.98 kB / 335.6 MB, free: 3.082 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.359, allocations: 0 / 335.6 MB, free: 3.082 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004524/0.3595, allocations: 48.34 kB / 335.7 MB, free: 3.07 MB / 266.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.0005386/0.36, allocations: 0.7104 MB / 336.4 MB, free: 2.391 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.585e-05/0.3601, allocations: 12.59 kB / 336.4 MB, free: 2.387 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3601, allocations: 3.938 kB / 336.4 MB, free: 2.383 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.748e-05/0.3602, allocations: 32.64 kB / 336.4 MB, free: 2.348 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001783/0.3604, allocations: 10.38 kB / 336.5 MB, free: 2.34 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004588/0.3608, allocations: 148.5 kB / 336.6 MB, free: 2.168 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001248/0.361, allocations: 0.6755 MB / 337.3 MB, free: 1.473 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.641e-05/0.361, allocations: 8.906 kB / 337.3 MB, free: 1.465 MB / 266.7 MB Notification: Performance of SimCode: time 8.91e-07/0.361, allocations: 0 / 337.3 MB, free: 1.465 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.446/2.807, allocations: 1.167 MB / 338.5 MB, free: 1.113 MB / 266.7 MB