Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 2.069/2.069, allocations: 171.1 MB / 186.3 MB, free: 1.422 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.014e-05/3.026e-05, allocations: 4 kB / 228.1 MB, free: 8.008 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1044, allocations: 38.77 MB / 266.9 MB, free: 1.156 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003666/0.1082, allocations: 1.378 MB / 268.3 MB, free: 15.76 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00108/0.1093, allocations: 243.1 kB / 268.5 MB, free: 15.52 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.1095, allocations: 8 kB / 268.5 MB, free: 15.51 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.1097, allocations: 19.8 kB / 268.5 MB, free: 15.49 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.1099, allocations: 11.97 kB / 268.5 MB, free: 15.48 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005566/0.1104, allocations: 83.84 kB / 268.6 MB, free: 15.4 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003582/0.1108, allocations: 135.8 kB / 268.8 MB, free: 15.27 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00042/0.1113, allocations: 121.6 kB / 268.9 MB, free: 15.14 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001848/0.1115, allocations: 59.91 kB / 268.9 MB, free: 15.08 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002257/0.1117, allocations: 67.69 kB / 269 MB, free: 15.01 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.1118, allocations: 12 kB / 269 MB, free: 15 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.64e-05/0.1119, allocations: 12 kB / 269 MB, free: 14.99 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.736e-05/0.112, allocations: 43.89 kB / 269.1 MB, free: 14.95 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.213e-05/0.1121, allocations: 12 kB / 269.1 MB, free: 14.93 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004122/0.1125, allocations: 151.6 kB / 269.2 MB, free: 14.79 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1125, allocations: 0 / 269.2 MB, free: 14.79 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.297e-06/0.1126, allocations: 3.984 kB / 269.2 MB, free: 14.78 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.52e-05/0.1126, allocations: 0 / 269.2 MB, free: 14.78 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.001163/0.1138, allocations: 438.3 kB / 269.7 MB, free: 14.31 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.427e-05/0.1139, allocations: 16.03 kB / 269.7 MB, free: 14.29 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.114, allocations: 27.66 kB / 269.7 MB, free: 14.27 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004769/0.1145, allocations: 222.8 kB / 269.9 MB, free: 14.01 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.94e-05/0.1146, allocations: 20.56 kB / 269.9 MB, free: 13.99 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.942e-05/0.1147, allocations: 31.94 kB / 270 MB, free: 13.96 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009475/0.1157, allocations: 261.9 kB / 270.2 MB, free: 13.68 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.1157, allocations: 0 / 270.2 MB, free: 13.68 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.916e-05/0.1158, allocations: 16 kB / 270.2 MB, free: 13.67 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.903e-05/0.1158, allocations: 8 kB / 270.2 MB, free: 13.66 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007205/0.1166, allocations: 169.6 kB / 270.4 MB, free: 13.5 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002378/0.1189, allocations: 0.9559 MB / 271.4 MB, free: 12.47 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005941/0.1196, allocations: 155.4 kB / 271.5 MB, free: 12.31 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.913e-05/0.1197, allocations: 8.125 kB / 271.5 MB, free: 12.3 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004033/0.1201, allocations: 114.7 kB / 271.6 MB, free: 12.18 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 4.268e-06/0.1201, allocations: 0 / 271.6 MB, free: 12.18 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008953/0.121, allocations: 209.3 kB / 271.8 MB, free: 11.97 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.792e-05/0.1211, allocations: 59.34 kB / 271.9 MB, free: 11.9 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002422/0.1214, allocations: 148.7 kB / 272 MB, free: 11.75 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.782e-05/0.1215, allocations: 37.7 kB / 272.1 MB, free: 11.7 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002114/0.1217, allocations: 202.9 kB / 272.3 MB, free: 11.5 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/0.1219, allocations: 63.28 kB / 272.3 MB, free: 11.44 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.54e-05/0.1219, allocations: 4 kB / 272.3 MB, free: 11.44 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002222/0.1222, allocations: 326.8 kB / 272.7 MB, free: 11.11 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002705/0.1224, allocations: 56.62 kB / 272.7 MB, free: 11.05 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000383/0.1228, allocations: 137.8 kB / 272.9 MB, free: 10.89 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003208/0.1232, allocations: 79.91 kB / 272.9 MB, free: 10.81 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.1232, allocations: 0 / 272.9 MB, free: 10.81 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000928/0.1242, allocations: 241.2 kB / 273.2 MB, free: 10.57 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.768e-05/0.1242, allocations: 9.406 kB / 273.2 MB, free: 10.56 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.1243, allocations: 0 / 273.2 MB, free: 10.56 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.92e-05/0.1243, allocations: 4 kB / 273.2 MB, free: 10.56 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003414/0.1246, allocations: 36.19 kB / 273.2 MB, free: 10.52 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.366e-05/0.1247, allocations: 15.89 kB / 273.2 MB, free: 10.51 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000273/0.125, allocations: 27.75 kB / 273.3 MB, free: 10.48 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.125e-05/0.1251, allocations: 12 kB / 273.3 MB, free: 10.47 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($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,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0003248/0.1254, allocations: 156.3 kB / 273.4 MB, free: 10.31 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.162e-05/0.1255, allocations: 7.906 kB / 273.4 MB, free: 10.3 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008063/0.1263, allocations: 190.3 kB / 273.6 MB, free: 10.1 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.1263, allocations: 11.98 kB / 273.6 MB, free: 10.09 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.1264, allocations: 0 / 273.6 MB, free: 10.09 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.1264, allocations: 3.953 kB / 273.6 MB, free: 10.09 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001649/0.128, allocations: 0.5797 MB / 274.2 MB, free: 9.445 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.1281, allocations: 7.984 kB / 274.2 MB, free: 9.438 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.1283, allocations: 11.94 kB / 274.2 MB, free: 9.426 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.288e-05/0.1283, allocations: 4 kB / 274.2 MB, free: 9.422 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.197e-05/0.1284, allocations: 15.89 kB / 274.2 MB, free: 9.406 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.446e-06/0.1284, allocations: 3.984 kB / 274.3 MB, free: 9.402 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.1284, allocations: 0 / 274.3 MB, free: 9.402 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006772/0.1291, allocations: 275.6 kB / 274.5 MB, free: 9.117 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.679e-05/0.1292, allocations: 92.86 kB / 274.6 MB, free: 9.008 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.883e-05/0.1293, allocations: 7.984 kB / 274.6 MB, free: 9 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.1295, allocations: 11.95 kB / 274.6 MB, free: 8.988 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.1297, allocations: 23.97 kB / 274.7 MB, free: 8.965 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-05/0.1298, allocations: 11.98 kB / 274.7 MB, free: 8.953 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001245/0.1299, allocations: 99.77 kB / 274.8 MB, free: 8.855 MB / 234.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.1299, allocations: 0 / 274.8 MB, free: 8.855 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0007273/0.1307, allocations: 47.84 kB / 274.8 MB, free: 8.809 MB / 234.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 (step.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0002686/0.131, allocations: 119.2 kB / 274.9 MB, free: 8.684 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.000744/0.1317, allocations: 180.2 kB / 275.1 MB, free: 8.508 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.1317, allocations: 4.062 kB / 275.1 MB, free: 8.504 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002976/0.1321, allocations: 79.91 kB / 275.2 MB, free: 8.426 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003939/0.1325, allocations: 15.98 kB / 275.2 MB, free: 8.41 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.1337, allocations: 400.7 kB / 275.6 MB, free: 7.988 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005705/0.1343, allocations: 0.7406 MB / 276.3 MB, free: 7.223 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.1344, allocations: 19.44 kB / 276.4 MB, free: 7.203 MB / 234.7 MB Notification: Performance of SimCode: time 9.82e-07/0.1345, allocations: 0 / 276.4 MB, free: 7.203 MB / 234.7 MB Notification: Performance of Templates: time 0.009296/0.1438, allocations: 2.317 MB / 278.7 MB, free: 4.883 MB / 234.7 MB