Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadModel(ModelicaTest): time 2.315/2.315, allocations: 269 MB / 284.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.711e-05/3.704e-05, allocations: 0 / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1459, allocations: 61.89 MB / 410.9 MB, free: 12.84 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001956/0.1479, allocations: 1.151 MB / 412.1 MB, free: 11.68 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007533/0.1487, allocations: 329.6 kB / 412.4 MB, free: 11.35 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.767e-05/0.1488, allocations: 0 / 412.4 MB, free: 11.35 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.833e-05/0.1488, allocations: 0 / 412.4 MB, free: 11.35 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.642e-05/0.1489, allocations: 15.98 kB / 412.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001483/0.149, allocations: 11.92 kB / 412.4 MB, free: 11.32 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.679e-05/0.1491, allocations: 15.97 kB / 412.4 MB, free: 11.31 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.995e-05/0.1492, allocations: 0 / 412.4 MB, free: 11.31 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.822e-05/0.1493, allocations: 15.98 kB / 412.4 MB, free: 11.29 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.557e-05/0.1494, allocations: 19.86 kB / 412.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.669e-05/0.1494, allocations: 4 kB / 412.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.423e-05/0.1494, allocations: 0 / 412.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.06e-05/0.1495, allocations: 3.984 kB / 412.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.92e-05/0.1495, allocations: 8 kB / 412.5 MB, free: 11.26 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 6.345e-05/0.1496, allocations: 19.97 kB / 412.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.1496, allocations: 0 / 412.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1496, allocations: 0 / 412.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.1496, allocations: 0 / 412.5 MB, free: 11.24 MB / 346.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.0005061/0.1501, allocations: 343.5 kB / 412.8 MB, free: 10.86 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.1502, allocations: 8.031 kB / 412.8 MB, free: 10.85 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.948e-05/0.1502, allocations: 12 kB / 412.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.1504, allocations: 170.9 kB / 413 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.1504, allocations: 3.938 kB / 413 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.738e-05/0.1504, allocations: 4 kB / 413 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002006/0.1506, allocations: 63.34 kB / 413.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.1507, allocations: 0 / 413.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.1507, allocations: 0 / 413.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.1507, allocations: 0 / 413.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00015/0.1509, allocations: 31.97 kB / 413.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004713/0.1514, allocations: 264.9 kB / 413.4 MB, free: 10.21 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001262/0.1515, allocations: 38.56 kB / 413.4 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.1515, allocations: 3.984 kB / 413.4 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.1516, allocations: 30.56 kB / 413.5 MB, free: 10.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.643e-06/0.1516, allocations: 0 / 413.5 MB, free: 10.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003453/0.1519, allocations: 73.67 kB / 413.5 MB, free: 10.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.152, allocations: 81.23 kB / 413.6 MB, free: 9.941 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.99e-05/0.1521, allocations: 105 kB / 413.7 MB, free: 9.832 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.1521, allocations: 25.7 kB / 413.7 MB, free: 9.801 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.616e-05/0.1522, allocations: 158.6 kB / 413.9 MB, free: 9.645 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/0.1523, allocations: 3.906 kB / 413.9 MB, free: 9.641 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-06/0.1523, allocations: 0 / 413.9 MB, free: 9.641 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.1524, allocations: 310.8 kB / 414.2 MB, free: 9.328 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.238e-05/0.1525, allocations: 15.98 kB / 414.2 MB, free: 9.312 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.26e-05/0.1526, allocations: 33.7 kB / 414.2 MB, free: 9.273 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.211e-05/0.1527, allocations: 12 kB / 414.3 MB, free: 9.262 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1527, allocations: 3.938 kB / 414.3 MB, free: 9.258 MB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002125/0.1529, allocations: 65.56 kB / 414.3 MB, free: 9.188 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.153, allocations: 8 kB / 414.3 MB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.901e-05/0.153, allocations: 4.031 kB / 414.3 MB, free: 9.176 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.153, allocations: 0 / 414.3 MB, free: 9.176 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.863e-05/0.1531, allocations: 4 kB / 414.3 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.1531, allocations: 0 / 414.3 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.1533, allocations: 15.92 kB / 414.4 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.348e-06/0.1533, allocations: 0 / 414.4 MB, free: 9.156 MB / 346.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: 2 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete 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 0.0001002/0.1534, allocations: 113.8 kB / 414.5 MB, free: 9.035 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.916e-05/0.1535, allocations: 15.86 kB / 414.5 MB, free: 9.02 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.503e-05/0.1535, allocations: 11.47 kB / 414.5 MB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.1535, allocations: 0 / 414.5 MB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1535, allocations: 0 / 414.5 MB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1535, allocations: 0 / 414.5 MB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002063/0.1537, allocations: 165.7 kB / 414.7 MB, free: 8.793 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1538, allocations: 0 / 414.7 MB, free: 8.793 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.197e-05/0.1538, allocations: 4 kB / 414.7 MB, free: 8.789 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.1538, allocations: 0 / 414.7 MB, free: 8.789 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/0.1539, allocations: 11.89 kB / 414.7 MB, free: 8.777 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1539, allocations: 4 kB / 414.7 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1539, allocations: 0 / 414.7 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002501/0.1541, allocations: 159.5 kB / 414.8 MB, free: 8.602 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.673e-05/0.1542, allocations: 81.02 kB / 414.9 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.1542, allocations: 0 / 414.9 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.1544, allocations: 20.11 kB / 414.9 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.315e-05/0.1545, allocations: 11.97 kB / 414.9 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-06/0.1545, allocations: 0 / 414.9 MB, free: 8.473 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.298e-05/0.1546, allocations: 91.27 kB / 415 MB, free: 8.383 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1546, allocations: 0 / 415 MB, free: 8.383 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000285/0.1549, allocations: 4 kB / 415 MB, free: 8.379 MB / 346.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 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001267/0.155, allocations: 95.25 kB / 415.1 MB, free: 8.277 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002201/0.1552, allocations: 39.92 kB / 415.2 MB, free: 8.238 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1553, allocations: 0 / 415.2 MB, free: 8.238 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.565e-05/0.1553, allocations: 15.98 kB / 415.2 MB, free: 8.223 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001661/0.1555, allocations: 10.44 kB / 415.2 MB, free: 8.215 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003752/0.1559, allocations: 158.4 kB / 415.3 MB, free: 8.027 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002629/0.1562, allocations: 0.6848 MB / 416 MB, free: 7.316 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.269e-05/0.1562, allocations: 7.438 kB / 416 MB, free: 7.309 MB / 346.7 MB Notification: Performance of SimCode: time 1.041e-06/0.1563, allocations: 0 / 416 MB, free: 7.309 MB / 346.7 MB Notification: Performance of Templates: time 0.002478/0.1587, allocations: 0.6249 MB / 416.7 MB, free: 6.684 MB / 346.7 MB