Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadModel(ModelicaTest): time 2.678/2.678, allocations: 234.9 MB / 250.1 MB, free: 9.934 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.574e-05/3.572e-05, allocations: 4 kB / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3748, allocations: 54.86 MB / 362.8 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005957/0.3755, allocations: 204.1 kB / 363 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006247/0.3761, allocations: 188.6 kB / 363.2 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.447e-05/0.3762, allocations: 1.156 kB / 363.2 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.267e-05/0.3762, allocations: 0 / 363.2 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.911e-06/0.3762, allocations: 0 / 363.2 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001844/0.3764, allocations: 26.81 kB / 363.2 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.928e-05/0.3764, allocations: 1.281 kB / 363.3 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.603e-05/0.3765, allocations: 7.984 kB / 363.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.91e-05/0.3765, allocations: 1.375 kB / 363.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003214/0.3769, allocations: 30.25 kB / 363.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.477e-06/0.3769, allocations: 0 / 363.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.356e-06/0.3769, allocations: 0 / 363.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.847e-06/0.3769, allocations: 5.375 kB / 363.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.531e-05/0.3769, allocations: 0 / 363.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 2.678e-05/0.377, allocations: 0 / 363.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.377, allocations: 1.156 kB / 363.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.377, allocations: 0 / 363.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.866e-06/0.377, allocations: 4 kB / 363.3 MB, free: 11.73 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.0003206/0.3774, allocations: 335.9 kB / 363.6 MB, free: 11.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3774, allocations: 9.125 kB / 363.6 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.527e-05/0.3774, allocations: 3.953 kB / 363.6 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.3776, allocations: 163.1 kB / 363.8 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.3776, allocations: 1.312 kB / 363.8 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.3776, allocations: 1.5 kB / 363.8 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.86e-05/0.3777, allocations: 31.17 kB / 363.8 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.3777, allocations: 4 kB / 363.8 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.929e-06/0.3778, allocations: 1.125 kB / 363.8 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.3778, allocations: 0 / 363.8 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.342e-05/0.3778, allocations: 9.016 kB / 363.8 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001525/0.378, allocations: 147.2 kB / 364 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.826e-05/0.378, allocations: 25.27 kB / 364 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.49e-06/0.3781, allocations: 0 / 364 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.301e-05/0.3781, allocations: 65.39 kB / 364.1 MB, free: 10.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.443e-06/0.3781, allocations: 0 / 364.1 MB, free: 10.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.000186/0.3783, allocations: 59.06 kB / 364.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/0.3784, allocations: 81.05 kB / 364.2 MB, free: 10.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.09e-05/0.3785, allocations: 94.45 kB / 364.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.3785, allocations: 25.7 kB / 364.3 MB, free: 10.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.642e-05/0.3786, allocations: 152.8 kB / 364.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/0.3786, allocations: 5.406 kB / 364.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-06/0.3786, allocations: 0 / 364.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.3788, allocations: 318.9 kB / 364.8 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.196e-05/0.3788, allocations: 1.062 kB / 364.8 MB, free: 10.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.674e-06/0.3788, allocations: 1.312 kB / 364.8 MB, free: 10.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.007e-05/0.3788, allocations: 31.2 kB / 364.8 MB, free: 10 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3789, allocations: 0 / 364.8 MB, free: 10 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.331e-05/0.3789, allocations: 59.25 kB / 364.9 MB, free: 9.938 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.119e-05/0.379, allocations: 38.91 kB / 364.9 MB, free: 9.898 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.379, allocations: 0 / 364.9 MB, free: 9.898 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.3791, allocations: 4.094 kB / 364.9 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.553e-06/0.3791, allocations: 0 / 364.9 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.3791, allocations: 1.062 kB / 364.9 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.8e-05/0.3791, allocations: 1.031 kB / 364.9 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.3791, allocations: 0 / 364.9 MB, free: 9.895 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 () * 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 0.0001022/0.3792, allocations: 143.5 kB / 365.1 MB, free: 9.742 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.147e-05/0.3793, allocations: 1.594 kB / 365.1 MB, free: 9.742 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.086e-05/0.3793, allocations: 3.125 kB / 365.1 MB, free: 9.742 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.3793, allocations: 0 / 365.1 MB, free: 9.742 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3793, allocations: 5.219 kB / 365.1 MB, free: 9.738 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3793, allocations: 3.984 kB / 365.1 MB, free: 9.734 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.3794, allocations: 146.7 kB / 365.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3795, allocations: 0 / 365.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.172e-06/0.3795, allocations: 1.562 kB / 365.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3795, allocations: 0 / 365.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.826e-06/0.3795, allocations: 1.594 kB / 365.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.3795, allocations: 3.938 kB / 365.2 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3795, allocations: 0 / 365.2 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001331/0.3797, allocations: 101.2 kB / 365.3 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.912e-05/0.3797, allocations: 78.11 kB / 365.4 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.3797, allocations: 1.281 kB / 365.4 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.496e-05/0.3798, allocations: 0 / 365.4 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.506e-05/0.3798, allocations: 5.031 kB / 365.4 MB, free: 9.328 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.3798, allocations: 5.297 kB / 365.4 MB, free: 9.324 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.525e-05/0.3799, allocations: 75.28 kB / 365.5 MB, free: 9.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3799, allocations: 0 / 365.5 MB, free: 9.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002174/0.3801, allocations: 6.75 kB / 365.5 MB, free: 9.246 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) * 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.0001205/0.3803, allocations: 97.69 kB / 365.6 MB, free: 9.152 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001049/0.3804, allocations: 61.06 kB / 365.7 MB, free: 9.086 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3804, allocations: 0 / 365.7 MB, free: 9.086 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.531e-05/0.3804, allocations: 54.09 kB / 365.7 MB, free: 9.023 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001017/0.3806, allocations: 2.938 kB / 365.7 MB, free: 9.023 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002069/0.3808, allocations: 111.7 kB / 365.8 MB, free: 8.887 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.3811, allocations: 0.6759 MB / 366.5 MB, free: 8.188 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.209e-05/0.3811, allocations: 7.438 kB / 366.5 MB, free: 8.18 MB / 298.7 MB Notification: Performance of SimCode: time 7.61e-07/0.3811, allocations: 1.406 kB / 366.5 MB, free: 8.18 MB / 298.7 MB Notification: Performance of Templates: time 0.001888/0.383, allocations: 333.2 kB / 366.8 MB, free: 8.023 MB / 298.7 MB