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.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadModel(ModelicaTest): time 2.726/2.726, allocations: 234.9 MB / 250.1 MB, free: 9.938 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.703e-05/2.709e-05, allocations: 0 / 308 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4022/0.4023, allocations: 54.86 MB / 362.8 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0007151/0.403, allocations: 260 kB / 363.1 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007965/0.4038, allocations: 320 kB / 363.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.081e-05/0.4039, allocations: 3.938 kB / 363.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.257e-05/0.4039, allocations: 1.344 kB / 363.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.07e-05/0.404, allocations: 0 / 363.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000327/0.4043, allocations: 63.73 kB / 363.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.38e-05/0.4044, allocations: 15.27 kB / 363.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.268e-05/0.4044, allocations: 5.562 kB / 363.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.179e-05/0.4045, allocations: 4 kB / 363.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.725e-05/0.4045, allocations: 25.53 kB / 363.5 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003052/0.4049, allocations: 105.1 kB / 363.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.842e-05/0.4049, allocations: 9.312 kB / 363.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.677e-05/0.405, allocations: 1.281 kB / 363.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.961e-05/0.405, allocations: 6.406 kB / 363.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000224/0.4052, allocations: 65.56 kB / 363.7 MB, free: 11.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.4053, allocations: 0 / 363.7 MB, free: 11.51 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4053, allocations: 0 / 363.7 MB, free: 11.51 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.4053, allocations: 5.312 kB / 363.7 MB, free: 11.51 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004914/0.4058, allocations: 355 kB / 364.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.4059, allocations: 13.16 kB / 364.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.57e-05/0.4059, allocations: 10.44 kB / 364.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001593/0.4061, allocations: 169.1 kB / 364.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/0.4061, allocations: 1.688 kB / 364.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.793e-05/0.4061, allocations: 3.188 kB / 364.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001654/0.4063, allocations: 57.02 kB / 364.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.4064, allocations: 5.328 kB / 364.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.4064, allocations: 8 kB / 364.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.4064, allocations: 1.5 kB / 364.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001068/0.4065, allocations: 31.97 kB / 364.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002404/0.4068, allocations: 163.3 kB / 364.5 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.4071, allocations: 57.02 kB / 364.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004116/0.4075, allocations: 117.5 kB / 364.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.4076, allocations: 35.81 kB / 364.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 3.146e-06/0.4076, allocations: 1.031 kB / 364.7 MB, free: 10.45 MB / 298.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.07917/0.4868, allocations: 2.809 MB / 367.5 MB, free: 8.965 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.099e-05/0.4869, allocations: 59.34 kB / 367.6 MB, free: 8.895 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.487, allocations: 96.94 kB / 367.7 MB, free: 8.793 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.975e-05/0.4871, allocations: 29.7 kB / 367.7 MB, free: 8.758 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.591e-05/0.4871, allocations: 162.5 kB / 367.9 MB, free: 8.598 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.4873, allocations: 55.11 kB / 367.9 MB, free: 8.543 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.187e-05/0.4873, allocations: 4 kB / 367.9 MB, free: 8.539 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.4875, allocations: 318.8 kB / 368.2 MB, free: 8.219 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007566/0.4882, allocations: 191.9 kB / 368.4 MB, free: 8.031 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007327/0.489, allocations: 195.9 kB / 368.6 MB, free: 7.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009599/0.49, allocations: 209.3 kB / 368.8 MB, free: 7.637 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.49, allocations: 4 kB / 368.8 MB, free: 7.633 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001954/0.492, allocations: 486.2 kB / 369.3 MB, free: 7.152 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/0.492, allocations: 8 kB / 369.3 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.492, allocations: 0 / 369.3 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.4921, allocations: 0 / 369.3 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007025/0.4928, allocations: 83.88 kB / 369.4 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.4928, allocations: 7.938 kB / 369.4 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003992/0.4932, allocations: 31.97 kB / 369.4 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.223e-05/0.4933, allocations: 12 kB / 369.4 MB, free: 7.012 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: 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.0001799/0.4935, allocations: 117.8 kB / 369.6 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.184e-05/0.4936, allocations: 11.91 kB / 369.6 MB, free: 6.875 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002385/0.4959, allocations: 0.5698 MB / 370.1 MB, free: 6.293 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.496, allocations: 8 kB / 370.1 MB, free: 6.285 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.496, allocations: 480 / 370.1 MB, free: 6.285 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.496, allocations: 3.984 kB / 370.2 MB, free: 6.281 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003758/0.4998, allocations: 0.9555 MB / 371.1 MB, free: 5.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.4999, allocations: 0 / 371.1 MB, free: 5.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000542/0.5004, allocations: 75.89 kB / 371.2 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/0.5004, allocations: 7.938 kB / 371.2 MB, free: 5.168 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.686e-05/0.5005, allocations: 16.17 kB / 371.2 MB, free: 5.152 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.805e-06/0.5005, allocations: 11.94 kB / 371.2 MB, free: 5.141 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.5005, allocations: 0 / 371.2 MB, free: 5.141 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.5023, allocations: 0.5527 MB / 371.8 MB, free: 4.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.633e-05/0.5024, allocations: 89 kB / 371.9 MB, free: 4.414 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.864e-05/0.5024, allocations: 7.953 kB / 371.9 MB, free: 4.406 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000358/0.5028, allocations: 23.98 kB / 371.9 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.531e-05/0.5029, allocations: 23.92 kB / 371.9 MB, free: 4.359 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.074e-05/0.5029, allocations: 15.98 kB / 371.9 MB, free: 4.344 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.169e-05/0.503, allocations: 79.28 kB / 372 MB, free: 4.266 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.503, allocations: 0 / 372 MB, free: 4.266 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001304/0.5043, allocations: 320 kB / 372.3 MB, free: 3.953 MB / 298.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.002087/0.5064, allocations: 227.1 kB / 372.5 MB, free: 3.723 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001613/0.5081, allocations: 371.7 kB / 372.9 MB, free: 3.359 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.5081, allocations: 0 / 372.9 MB, free: 3.359 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006789/0.5088, allocations: 164.2 kB / 373.1 MB, free: 3.199 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002274/0.5091, allocations: 11.98 kB / 373.1 MB, free: 3.188 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.5114, allocations: 0.4979 MB / 373.6 MB, free: 2.637 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000373/0.5118, allocations: 0.7007 MB / 374.3 MB, free: 1.906 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003298/0.5121, allocations: 47.41 kB / 374.3 MB, free: 1.859 MB / 298.7 MB Notification: Performance of SimCode: time 1.252e-06/0.5122, allocations: 0 / 374.3 MB, free: 1.859 MB / 298.7 MB Notification: Performance of Templates: time 0.01839/0.5305, allocations: 7.54 MB / 381.9 MB, free: 10.36 MB / 314.7 MB