Running command: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadModel(ModelicaTest): time 2.022/2.022, allocations: 209.2 MB / 224.4 MB, free: 0.8555 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.981e-05/2.981e-05, allocations: 4 kB / 276.1 MB, free: 15.9 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3645, allocations: 48.69 MB / 324.8 MB, free: 2.906 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0007355/0.3653, allocations: 260.8 kB / 325.1 MB, free: 2.879 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007371/0.3661, allocations: 332.3 kB / 325.4 MB, free: 2.711 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.818e-05/0.3661, allocations: 0 / 325.4 MB, free: 2.711 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.288e-05/0.3661, allocations: 0 / 325.4 MB, free: 2.711 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.45e-05/0.3662, allocations: 1.094 kB / 325.4 MB, free: 2.711 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003291/0.3665, allocations: 64.25 kB / 325.5 MB, free: 2.684 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.825e-05/0.3666, allocations: 15.91 kB / 325.5 MB, free: 2.676 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.962e-05/0.3666, allocations: 0.9375 kB / 325.5 MB, free: 2.676 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.67e-05/0.3667, allocations: 6.828 kB / 325.5 MB, free: 2.676 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.505e-05/0.3667, allocations: 17.91 kB / 325.5 MB, free: 2.668 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002929/0.367, allocations: 106.7 kB / 325.6 MB, free: 2.641 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.986e-05/0.3671, allocations: 9.438 kB / 325.6 MB, free: 2.641 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.388e-05/0.3671, allocations: 2.391 kB / 325.6 MB, free: 2.641 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.563e-05/0.3671, allocations: 2.281 kB / 325.6 MB, free: 2.641 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001827/0.3673, allocations: 61.89 kB / 325.7 MB, free: 2.633 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.3673, allocations: 0 / 325.7 MB, free: 2.633 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3674, allocations: 7.938 kB / 325.7 MB, free: 2.625 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.3674, allocations: 1.312 kB / 325.7 MB, free: 2.625 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.00036/0.3677, allocations: 353.8 kB / 326.1 MB, free: 2.254 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.3678, allocations: 10.16 kB / 326.1 MB, free: 2.254 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.871e-05/0.3679, allocations: 6.469 kB / 326.1 MB, free: 2.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.292e-05/0.368, allocations: 165.8 kB / 326.2 MB, free: 2.051 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.368, allocations: 6.297 kB / 326.2 MB, free: 2.047 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.22e-05/0.368, allocations: 3.062 kB / 326.2 MB, free: 2.047 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001474/0.3682, allocations: 57.16 kB / 326.3 MB, free: 2.004 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.3682, allocations: 0.5156 kB / 326.3 MB, free: 2.004 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/0.3682, allocations: 6.234 kB / 326.3 MB, free: 2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.3682, allocations: 1.125 kB / 326.3 MB, free: 2 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.658e-05/0.3683, allocations: 28.52 kB / 326.3 MB, free: 1.992 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001729/0.3685, allocations: 172.2 kB / 326.5 MB, free: 1.793 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002845/0.3688, allocations: 61.45 kB / 326.6 MB, free: 1.754 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003878/0.3692, allocations: 118.1 kB / 326.7 MB, free: 1.656 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.781e-05/0.3693, allocations: 35.94 kB / 326.7 MB, free: 1.613 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.633e-06/0.3693, allocations: 0 / 326.7 MB, free: 1.613 MB / 266.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.08235/0.4516, allocations: 2.817 MB / 329.5 MB, free: 0.918 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.667e-05/0.4517, allocations: 53.69 kB / 329.6 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.267e-05/0.4518, allocations: 96.7 kB / 329.7 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.611e-05/0.4519, allocations: 31.2 kB / 329.7 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.671e-05/0.4519, allocations: 154.6 kB / 329.9 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.452, allocations: 60.77 kB / 329.9 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-05/0.4521, allocations: 1.719 kB / 329.9 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.392e-05/0.4522, allocations: 318.2 kB / 330.2 MB, free: 216 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000695/0.4529, allocations: 192.6 kB / 330.4 MB, free: 148 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006981/0.4536, allocations: 191.2 kB / 330.6 MB, free: 84 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009533/0.4546, allocations: 218.2 kB / 330.8 MB, free: 0 / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.4546, allocations: 1.484 kB / 330.8 MB, free: 16 MB / 282.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001957/0.4566, allocations: 493.3 kB / 331.3 MB, free: 15.81 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.4567, allocations: 5.188 kB / 331.3 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.4567, allocations: 4 kB / 331.3 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.4567, allocations: 5.281 kB / 331.3 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007112/0.4574, allocations: 75.12 kB / 331.4 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.4575, allocations: 0.7031 kB / 331.4 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000419/0.4579, allocations: 32.22 kB / 331.4 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.668e-05/0.458, allocations: 16.59 kB / 331.4 MB, free: 15.79 MB / 282.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 0.0001916/0.4582, allocations: 120.5 kB / 331.6 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.103e-05/0.4582, allocations: 8.812 kB / 331.6 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002451/0.4607, allocations: 0.5717 MB / 332.1 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.4608, allocations: 6.969 kB / 332.1 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.4608, allocations: 1.312 kB / 332.1 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.4608, allocations: 1.219 kB / 332.1 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003893/0.4647, allocations: 0.9466 MB / 333.1 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.4648, allocations: 1.5 kB / 333.1 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005654/0.4653, allocations: 79.28 kB / 333.2 MB, free: 14.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.107e-06/0.4654, allocations: 7.219 kB / 333.2 MB, free: 14.93 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.198e-05/0.4654, allocations: 14.66 kB / 333.2 MB, free: 14.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.558e-06/0.4654, allocations: 6.641 kB / 333.2 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.289e-05/0.4655, allocations: 10.67 kB / 333.2 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/0.4672, allocations: 0.5449 MB / 333.8 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.641e-05/0.4673, allocations: 85.84 kB / 333.8 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.53e-05/0.4674, allocations: 3.938 kB / 333.8 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003761/0.4678, allocations: 31.8 kB / 333.9 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.265e-05/0.4679, allocations: 20.09 kB / 333.9 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.488e-05/0.4679, allocations: 19.89 kB / 333.9 MB, free: 14.43 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.245e-05/0.468, allocations: 80.92 kB / 334 MB, free: 14.36 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.468, allocations: 0 / 334 MB, free: 14.36 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001454/0.4695, allocations: 315.7 kB / 334.3 MB, free: 14.33 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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 Backend phase and start with SimCode phase: time 0.002244/0.4717, allocations: 231.2 kB / 334.5 MB, free: 14.22 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001646/0.4734, allocations: 371 kB / 334.9 MB, free: 14.11 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.4735, allocations: 1.562 kB / 334.9 MB, free: 14.11 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000698/0.4742, allocations: 160.7 kB / 335 MB, free: 14.07 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002676/0.4744, allocations: 12.67 kB / 335.1 MB, free: 14.07 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002388/0.4769, allocations: 0.5039 MB / 335.6 MB, free: 13.78 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003096/0.4772, allocations: 0.702 MB / 336.3 MB, free: 13.08 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003547/0.4776, allocations: 48.67 kB / 336.3 MB, free: 13.07 MB / 282.7 MB Notification: Performance of SimCode: time 1.192e-06/0.4776, allocations: 0 / 336.3 MB, free: 13.07 MB / 282.7 MB Notification: Performance of Templates: time 0.02043/0.498, allocations: 7.54 MB / 343.9 MB, free: 9.355 MB / 282.7 MB