Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 2.216/2.216, allocations: 224.7 MB / 241.1 MB, free: 1.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.171e-05/4.166e-05, allocations: 11.98 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1304, allocations: 50.41 MB / 345 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002028/0.1325, allocations: 1.189 MB / 346.2 MB, free: 7.738 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000792/0.1334, allocations: 271.4 kB / 346.4 MB, free: 7.473 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.1335, allocations: 8 kB / 346.4 MB, free: 7.465 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.1336, allocations: 19.8 kB / 346.5 MB, free: 7.445 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.286e-05/0.1338, allocations: 7.984 kB / 346.5 MB, free: 7.438 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003953/0.1342, allocations: 83.89 kB / 346.5 MB, free: 7.355 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002779/0.1345, allocations: 127.7 kB / 346.7 MB, free: 7.23 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002795/0.1348, allocations: 112.6 kB / 346.8 MB, free: 7.117 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.131e-05/0.1349, allocations: 51.86 kB / 346.8 MB, free: 7.066 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001466/0.135, allocations: 71.72 kB / 346.9 MB, free: 6.996 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.754e-05/0.1351, allocations: 23.88 kB / 346.9 MB, free: 6.973 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.651e-05/0.1352, allocations: 12 kB / 346.9 MB, free: 6.961 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.911e-05/0.1352, allocations: 35.84 kB / 347 MB, free: 6.926 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.007e-05/0.1353, allocations: 12 kB / 347 MB, free: 6.914 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002879/0.1356, allocations: 151.7 kB / 347.1 MB, free: 6.766 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1356, allocations: 0 / 347.1 MB, free: 6.766 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1356, allocations: 0 / 347.1 MB, free: 6.766 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.1357, allocations: 4 kB / 347.1 MB, free: 6.762 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008111/0.1365, allocations: 438.8 kB / 347.6 MB, free: 6.281 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.1365, allocations: 8.031 kB / 347.6 MB, free: 6.273 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.1366, allocations: 23.77 kB / 347.6 MB, free: 6.25 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.137, allocations: 230.7 kB / 347.8 MB, free: 5.984 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.16e-05/0.137, allocations: 16.56 kB / 347.8 MB, free: 5.969 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.991e-05/0.1371, allocations: 28 kB / 347.9 MB, free: 5.941 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006586/0.1378, allocations: 243.4 kB / 348.1 MB, free: 5.691 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.1378, allocations: 0 / 348.1 MB, free: 5.691 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.1379, allocations: 12 kB / 348.1 MB, free: 5.68 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.1379, allocations: 4 kB / 348.1 MB, free: 5.676 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004817/0.1384, allocations: 161.5 kB / 348.3 MB, free: 5.52 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001464/0.1399, allocations: 0.7014 MB / 349 MB, free: 4.762 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004675/0.1404, allocations: 182.4 kB / 349.1 MB, free: 4.578 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.154e-05/0.1404, allocations: 4.188 kB / 349.2 MB, free: 4.574 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003047/0.1407, allocations: 115.5 kB / 349.3 MB, free: 4.449 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 3.276e-06/0.1408, allocations: 0 / 349.3 MB, free: 4.449 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006526/0.1414, allocations: 207 kB / 349.5 MB, free: 4.242 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.1415, allocations: 63.25 kB / 349.5 MB, free: 4.168 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001698/0.1417, allocations: 133 kB / 349.7 MB, free: 4.027 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.709e-05/0.1417, allocations: 45.64 kB / 349.7 MB, free: 3.977 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.1419, allocations: 199 kB / 349.9 MB, free: 3.781 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.506e-05/0.142, allocations: 63.19 kB / 350 MB, free: 3.719 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.987e-05/0.142, allocations: 8 kB / 350 MB, free: 3.711 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1422, allocations: 322.8 kB / 350.3 MB, free: 3.387 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.1424, allocations: 64.62 kB / 350.3 MB, free: 3.32 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002446/0.1426, allocations: 128.1 kB / 350.5 MB, free: 3.172 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00021/0.1428, allocations: 64.52 kB / 350.5 MB, free: 3.109 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1429, allocations: 0 / 350.5 MB, free: 3.109 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005926/0.1435, allocations: 245.2 kB / 350.8 MB, free: 2.863 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.1435, allocations: 8 kB / 350.8 MB, free: 2.855 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.1435, allocations: 4 kB / 350.8 MB, free: 2.852 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.473e-05/0.1436, allocations: 4 kB / 350.8 MB, free: 2.848 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002414/0.1438, allocations: 31.92 kB / 350.8 MB, free: 2.816 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/0.1438, allocations: 7.938 kB / 350.8 MB, free: 2.809 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/0.144, allocations: 31.67 kB / 350.9 MB, free: 2.777 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.081e-05/0.1441, allocations: 12.22 kB / 350.9 MB, free: 2.766 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0002178/0.1443, allocations: 161.7 kB / 351 MB, free: 2.598 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.869e-05/0.1444, allocations: 11.86 kB / 351 MB, free: 2.586 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005415/0.1449, allocations: 190.4 kB / 351.2 MB, free: 2.395 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.1449, allocations: 4 kB / 351.2 MB, free: 2.391 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.145, allocations: 0 / 351.2 MB, free: 2.391 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.145, allocations: 7.922 kB / 351.2 MB, free: 2.383 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.1462, allocations: 0.5737 MB / 351.8 MB, free: 1.754 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.1462, allocations: 0 / 351.8 MB, free: 1.754 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001518/0.1464, allocations: 19.94 kB / 351.8 MB, free: 1.734 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.306e-06/0.1464, allocations: 3.984 kB / 351.8 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.1464, allocations: 7.984 kB / 351.8 MB, free: 1.723 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.1464, allocations: 0 / 351.8 MB, free: 1.723 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1464, allocations: 0 / 351.8 MB, free: 1.723 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004692/0.1469, allocations: 285.2 kB / 352.1 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.917e-05/0.147, allocations: 88.95 kB / 352.2 MB, free: 1.324 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.315e-05/0.147, allocations: 8 kB / 352.2 MB, free: 1.316 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/0.1472, allocations: 11.94 kB / 352.2 MB, free: 1.305 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.1473, allocations: 23.95 kB / 352.3 MB, free: 1.281 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.1473, allocations: 8 kB / 352.3 MB, free: 1.273 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.297e-05/0.1474, allocations: 91.27 kB / 352.3 MB, free: 1.184 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.1474, allocations: 4 kB / 352.4 MB, free: 1.18 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004111/0.1479, allocations: 47.91 kB / 352.4 MB, free: 1.133 MB / 282.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: 19 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001934/0.1481, allocations: 111.2 kB / 352.5 MB, free: 1.012 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005036/0.1486, allocations: 182.8 kB / 352.7 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1486, allocations: 0 / 352.7 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002117/0.1488, allocations: 83.84 kB / 352.8 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.1491, allocations: 24.33 kB / 352.8 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009133/0.15, allocations: 396.7 kB / 353.2 MB, free: 320 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.1504, allocations: 0.7328 MB / 353.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.1505, allocations: 27.42 kB / 353.9 MB, free: 15.53 MB / 298.7 MB Notification: Performance of SimCode: time 1.032e-06/0.1506, allocations: 7.938 kB / 353.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of Templates: time 0.006463/0.157, allocations: 2.287 MB / 356.2 MB, free: 13.24 MB / 298.7 MB