Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadModel(ModelicaTest): time 2.392/2.392, allocations: 269 MB / 284.1 MB, free: 3.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.037e-05/3.032e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1312, allocations: 61.89 MB / 410.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002277/0.1335, allocations: 1.312 MB / 412.2 MB, free: 11.55 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.1347, allocations: 491.3 kB / 412.7 MB, free: 11.06 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.933e-05/0.1349, allocations: 3.938 kB / 412.7 MB, free: 11.06 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.763e-05/0.1349, allocations: 3.984 kB / 412.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.135, allocations: 15.92 kB / 412.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003866/0.1354, allocations: 63.89 kB / 412.8 MB, free: 10.98 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001775/0.1356, allocations: 63.77 kB / 412.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.1357, allocations: 19.92 kB / 412.9 MB, free: 10.89 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.539e-05/0.1359, allocations: 39.91 kB / 412.9 MB, free: 10.86 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.82e-05/0.1359, allocations: 27.84 kB / 412.9 MB, free: 10.83 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.168e-05/0.136, allocations: 4 kB / 412.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.264e-05/0.136, allocations: 4 kB / 412.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.574e-05/0.136, allocations: 11.92 kB / 413 MB, free: 10.81 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.764e-05/0.1361, allocations: 12 kB / 413 MB, free: 10.8 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001208/0.1362, allocations: 60.09 kB / 413 MB, free: 10.74 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.1362, allocations: 0 / 413 MB, free: 10.74 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1362, allocations: 0 / 413 MB, free: 10.74 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.928e-06/0.1363, allocations: 0 / 413 MB, free: 10.74 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007842/0.137, allocations: 395.2 kB / 413.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.1371, allocations: 12.03 kB / 413.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.35e-05/0.1372, allocations: 7.906 kB / 413.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002879/0.1375, allocations: 194.8 kB / 413.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.922e-05/0.1375, allocations: 8 kB / 413.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.628e-05/0.1376, allocations: 7.953 kB / 413.6 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004391/0.138, allocations: 105.6 kB / 413.7 MB, free: 9.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.138, allocations: 4 kB / 413.7 MB, free: 9.926 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.1381, allocations: 8 kB / 413.8 MB, free: 9.918 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.1381, allocations: 0 / 413.8 MB, free: 9.918 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002742/0.1384, allocations: 55.95 kB / 413.8 MB, free: 9.863 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.1394, allocations: 404.4 kB / 414.2 MB, free: 9.418 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005907/0.1401, allocations: 118.5 kB / 414.3 MB, free: 9.293 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.39e-05/0.1401, allocations: 0 / 414.3 MB, free: 9.293 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004343/0.1405, allocations: 119.4 kB / 414.4 MB, free: 9.164 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 2.394e-06/0.1406, allocations: 0 / 414.4 MB, free: 9.164 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.000764/0.1413, allocations: 149.8 kB / 414.6 MB, free: 9.012 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/0.1414, allocations: 55.39 kB / 414.6 MB, free: 8.945 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001757/0.1416, allocations: 148.4 kB / 414.8 MB, free: 8.797 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.1416, allocations: 29.7 kB / 414.8 MB, free: 8.762 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.801e-05/0.1418, allocations: 162.7 kB / 415 MB, free: 8.602 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.32e-05/0.1418, allocations: 19.89 kB / 415 MB, free: 8.582 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.685e-06/0.1418, allocations: 4 kB / 415 MB, free: 8.578 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.142, allocations: 322.8 kB / 415.3 MB, free: 8.254 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002176/0.1422, allocations: 31.98 kB / 415.3 MB, free: 8.223 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002252/0.1424, allocations: 57.62 kB / 415.4 MB, free: 8.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.1427, allocations: 35.98 kB / 415.4 MB, free: 8.125 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1427, allocations: 0 / 415.4 MB, free: 8.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005534/0.1432, allocations: 129.5 kB / 415.6 MB, free: 7.992 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.1433, allocations: 10.81 kB / 415.6 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1433, allocations: 0 / 415.6 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.1433, allocations: 0 / 415.6 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.1435, allocations: 23.95 kB / 415.6 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.398e-05/0.1435, allocations: 8.062 kB / 415.6 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001726/0.1437, allocations: 15.98 kB / 415.6 MB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.1437, allocations: 7.953 kB / 415.6 MB, free: 7.93 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001293/0.1439, allocations: 117.8 kB / 415.7 MB, free: 7.805 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.056e-05/0.1439, allocations: 7.906 kB / 415.7 MB, free: 7.797 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.807e-05/0.144, allocations: 20.98 kB / 415.8 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.144, allocations: 0 / 415.8 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.144, allocations: 0 / 415.8 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.144, allocations: 3.938 kB / 415.8 MB, free: 7.773 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008642/0.1449, allocations: 406.3 kB / 416.2 MB, free: 7.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1449, allocations: 0 / 416.2 MB, free: 7.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.1451, allocations: 15.98 kB / 416.2 MB, free: 7.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.1451, allocations: 0 / 416.2 MB, free: 7.305 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.1451, allocations: 4 kB / 416.2 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1451, allocations: 0 / 416.2 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1452, allocations: 0 / 416.2 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007813/0.1459, allocations: 263.3 kB / 416.4 MB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.482e-05/0.146, allocations: 92.94 kB / 416.5 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.1461, allocations: 4.031 kB / 416.5 MB, free: 6.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.1463, allocations: 19.98 kB / 416.6 MB, free: 6.895 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.391e-05/0.1464, allocations: 15.97 kB / 416.6 MB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.1465, allocations: 8.062 kB / 416.6 MB, free: 6.871 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001526/0.1466, allocations: 111.8 kB / 416.7 MB, free: 6.762 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1466, allocations: 0 / 416.7 MB, free: 6.762 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003728/0.147, allocations: 20 kB / 416.7 MB, free: 6.742 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001495/0.1472, allocations: 95.25 kB / 416.8 MB, free: 6.641 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005419/0.1477, allocations: 95.88 kB / 416.9 MB, free: 6.547 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.1477, allocations: 7.938 kB / 416.9 MB, free: 6.539 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002406/0.148, allocations: 39.97 kB / 416.9 MB, free: 6.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.1483, allocations: 27.98 kB / 417 MB, free: 6.473 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008063/0.1492, allocations: 278.8 kB / 417.2 MB, free: 6.164 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.1495, allocations: 0.7004 MB / 417.9 MB, free: 5.438 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.49e-05/0.1496, allocations: 11.44 kB / 418 MB, free: 5.426 MB / 346.7 MB Notification: Performance of SimCode: time 9.52e-07/0.1496, allocations: 0 / 418 MB, free: 5.426 MB / 346.7 MB Notification: Performance of Templates: time 0.004245/0.1539, allocations: 1.304 MB / 419.3 MB, free: 4.121 MB / 346.7 MB