Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.344/1.344, allocations: 111.1 MB / 126.3 MB, free: 6.41 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.885e-05/2.895e-05, allocations: 0 / 154.5 MB, free: 2.848 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06739/0.06745, allocations: 25.18 MB / 179.7 MB, free: 9.625 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002827/0.07034, allocations: 1.246 MB / 180.9 MB, free: 8.375 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009231/0.07132, allocations: 243.3 kB / 181.2 MB, free: 8.137 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.07147, allocations: 8 kB / 181.2 MB, free: 8.129 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.07162, allocations: 23.78 kB / 181.2 MB, free: 8.105 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 8.406e-05/0.07172, allocations: 19.97 kB / 181.2 MB, free: 8.086 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004355/0.07217, allocations: 71.92 kB / 181.3 MB, free: 8.016 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003246/0.07252, allocations: 135.7 kB / 181.4 MB, free: 7.883 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004083/0.07294, allocations: 125.5 kB / 181.5 MB, free: 7.75 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.0731, allocations: 51.92 kB / 181.6 MB, free: 7.699 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/0.07331, allocations: 67.75 kB / 181.7 MB, free: 7.633 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.07345, allocations: 19.98 kB / 181.7 MB, free: 7.613 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 5.029e-05/0.07352, allocations: 8 kB / 181.7 MB, free: 7.605 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 8.781e-05/0.07362, allocations: 35.84 kB / 181.7 MB, free: 7.57 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 5.144e-05/0.07369, allocations: 12 kB / 181.7 MB, free: 7.559 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00039/0.0741, allocations: 159.6 kB / 181.9 MB, free: 7.402 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.07413, allocations: 0 / 181.9 MB, free: 7.402 MB / 154.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.07414, allocations: 0 / 181.9 MB, free: 7.402 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.07417, allocations: 0 / 181.9 MB, free: 7.402 MB / 154.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.00105/0.07524, allocations: 438.4 kB / 182.3 MB, free: 6.926 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.05e-05/0.07532, allocations: 12.02 kB / 182.3 MB, free: 6.914 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.07544, allocations: 27.67 kB / 182.4 MB, free: 6.887 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004417/0.07591, allocations: 226.7 kB / 182.6 MB, free: 6.625 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.401e-05/0.07599, allocations: 20.56 kB / 182.6 MB, free: 6.605 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.559e-05/0.07609, allocations: 24 kB / 182.6 MB, free: 6.582 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009337/0.07704, allocations: 269.9 kB / 182.9 MB, free: 6.297 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.07709, allocations: 4 kB / 182.9 MB, free: 6.293 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.225e-05/0.07715, allocations: 8 kB / 182.9 MB, free: 6.285 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.795e-05/0.07718, allocations: 8 kB / 182.9 MB, free: 6.277 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006911/0.07789, allocations: 169.5 kB / 183.1 MB, free: 6.113 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002175/0.08008, allocations: 0.9521 MB / 184 MB, free: 5.09 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005788/0.08072, allocations: 159.3 kB / 184.2 MB, free: 4.926 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.424e-05/0.08077, allocations: 192 / 184.2 MB, free: 4.926 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004175/0.08121, allocations: 122.8 kB / 184.3 MB, free: 4.797 MB / 154.7 MB Notification: Performance of pre-optimization done (n=23): time 3.226e-06/0.08123, allocations: 0 / 184.3 MB, free: 4.797 MB / 154.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008648/0.08211, allocations: 213.3 kB / 184.5 MB, free: 4.582 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.952e-05/0.0822, allocations: 55.41 kB / 184.6 MB, free: 4.516 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.08244, allocations: 140.8 kB / 184.7 MB, free: 4.371 MB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 6.175e-05/0.08252, allocations: 37.7 kB / 184.7 MB, free: 4.328 MB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.08273, allocations: 202.9 kB / 184.9 MB, free: 4.129 MB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.08285, allocations: 59.25 kB / 185 MB, free: 4.07 MB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.453e-05/0.08289, allocations: 4 kB / 185 MB, free: 4.066 MB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.08309, allocations: 326.8 kB / 185.3 MB, free: 3.738 MB / 154.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000269/0.08338, allocations: 68.56 kB / 185.4 MB, free: 3.672 MB / 154.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003661/0.08376, allocations: 133.9 kB / 185.5 MB, free: 3.512 MB / 154.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003148/0.08409, allocations: 71.91 kB / 185.6 MB, free: 3.441 MB / 154.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.135e-05/0.08412, allocations: 4 kB / 185.6 MB, free: 3.438 MB / 154.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009191/0.08506, allocations: 241.3 kB / 185.8 MB, free: 3.195 MB / 154.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.09e-05/0.08511, allocations: 8.281 kB / 185.8 MB, free: 3.188 MB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.08514, allocations: 4 kB / 185.8 MB, free: 3.184 MB / 154.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.767e-05/0.08518, allocations: 4 kB / 185.8 MB, free: 3.18 MB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003289/0.08552, allocations: 39.91 kB / 185.9 MB, free: 3.141 MB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.787e-05/0.08556, allocations: 4 kB / 185.9 MB, free: 3.137 MB / 154.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002641/0.08584, allocations: 23.75 kB / 185.9 MB, free: 3.113 MB / 154.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.953e-05/0.08592, allocations: 16 kB / 185.9 MB, free: 3.098 MB / 154.7 MB Warning: Assuming fixed start value for the following 1 variables: transition1.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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.0003784/0.08631, allocations: 164.2 kB / 186.1 MB, free: 2.926 MB / 154.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.685e-05/0.08639, allocations: 19.81 kB / 186.1 MB, free: 2.906 MB / 154.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007404/0.08715, allocations: 190.4 kB / 186.3 MB, free: 2.719 MB / 154.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.08718, allocations: 0 / 186.3 MB, free: 2.719 MB / 154.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.0872, allocations: 0 / 186.3 MB, free: 2.719 MB / 154.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.08722, allocations: 0 / 186.3 MB, free: 2.719 MB / 154.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001638/0.08887, allocations: 0.5875 MB / 186.9 MB, free: 2.07 MB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.08894, allocations: 7.938 kB / 186.9 MB, free: 2.062 MB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/0.08914, allocations: 15.94 kB / 186.9 MB, free: 2.047 MB / 154.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.438e-06/0.08917, allocations: 3.938 kB / 186.9 MB, free: 2.043 MB / 154.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.604e-05/0.08922, allocations: 7.984 kB / 186.9 MB, free: 2.035 MB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.983e-06/0.08925, allocations: 4 kB / 186.9 MB, free: 2.031 MB / 154.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.08926, allocations: 0 / 186.9 MB, free: 2.031 MB / 154.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006941/0.08997, allocations: 271.6 kB / 187.2 MB, free: 1.75 MB / 154.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.046e-05/0.09008, allocations: 89 kB / 187.3 MB, free: 1.645 MB / 154.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.898e-05/0.09016, allocations: 12 kB / 187.3 MB, free: 1.633 MB / 154.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.09041, allocations: 8 kB / 187.3 MB, free: 1.625 MB / 154.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.09056, allocations: 19.91 kB / 187.3 MB, free: 1.605 MB / 154.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.905e-05/0.09062, allocations: 11.98 kB / 187.3 MB, free: 1.594 MB / 154.7 MB Notification: Performance of sorting global known variables: time 0.0001153/0.09075, allocations: 95.83 kB / 187.4 MB, free: 1.5 MB / 154.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.09077, allocations: 0 / 187.4 MB, free: 1.5 MB / 154.7 MB Notification: Performance of remove unused functions: time 0.0007258/0.09151, allocations: 51.84 kB / 187.5 MB, free: 1.449 MB / 154.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.0002551/0.09179, allocations: 115.1 kB / 187.6 MB, free: 1.324 MB / 154.7 MB Notification: Performance of simCode: created initialization part: time 0.0007494/0.09256, allocations: 183.7 kB / 187.7 MB, free: 1.145 MB / 154.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.09258, allocations: 4 kB / 187.8 MB, free: 1.141 MB / 154.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002881/0.09289, allocations: 67.92 kB / 187.8 MB, free: 1.074 MB / 154.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004197/0.09333, allocations: 19.98 kB / 187.8 MB, free: 1.055 MB / 154.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.09458, allocations: 405.2 kB / 188.2 MB, free: 0.6328 MB / 154.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005454/0.09516, allocations: 0.7328 MB / 189 MB, free: 15.87 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.09534, allocations: 31.42 kB / 189 MB, free: 15.84 MB / 170.7 MB Notification: Performance of SimCode: time 1.252e-06/0.09536, allocations: 0 / 189 MB, free: 15.84 MB / 170.7 MB Notification: Performance of Templates: time 0.009243/0.1046, allocations: 2.324 MB / 191.3 MB, free: 13.51 MB / 170.7 MB