Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_2_cs_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.407/2.407, allocations: 195 MB / 202.9 MB, free: 6.648 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.019e-05/3.037e-05, allocations: 2.75 kB / 249.7 MB, free: 5.273 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1028, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5155/0.6184, allocations: 70.78 MB / 365 MB, free: 7.266 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003479/0.6188, allocations: 65.55 kB / 365.1 MB, free: 7.266 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01632/0.6352, allocations: 2.871 MB / 368 MB, free: 22.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.6352, allocations: 2.672 kB / 368 MB, free: 22.79 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.183e-05/0.6352, allocations: 3.781 kB / 368 MB, free: 22.79 MB / 314.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.0007228/0.636, allocations: 437.8 kB / 368.4 MB, free: 22.4 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.636, allocations: 11.59 kB / 368.4 MB, free: 22.4 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.341e-05/0.6361, allocations: 52.28 kB / 368.5 MB, free: 22.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.15e-05/0.6362, allocations: 23.31 kB / 368.5 MB, free: 22.35 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/0.6365, allocations: 234.8 kB / 368.7 MB, free: 22.13 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.79e-05/0.6366, allocations: 16.14 kB / 368.7 MB, free: 22.13 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.578e-05/0.6367, allocations: 15.44 kB / 368.7 MB, free: 22.13 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004714/0.6371, allocations: 146.4 kB / 368.9 MB, free: 22.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005354/0.6377, allocations: 227.6 kB / 369.1 MB, free: 22.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.6377, allocations: 4 kB / 369.1 MB, free: 22.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.302e-05/0.6378, allocations: 0 / 369.1 MB, free: 22.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.6378, allocations: 3.875 kB / 369.1 MB, free: 22.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001402/0.6392, allocations: 0.8925 MB / 370 MB, free: 21.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003452/0.6396, allocations: 145.8 kB / 370.2 MB, free: 21.4 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.6398, allocations: 68.56 kB / 370.2 MB, free: 21.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.408e-05/0.6398, allocations: 8.078 kB / 370.2 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002425/0.6401, allocations: 98.45 kB / 370.3 MB, free: 21.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.767e-06/0.6401, allocations: 0 / 370.3 MB, free: 21.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004446/0.6406, allocations: 149 kB / 370.5 MB, free: 21.29 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.6406, allocations: 59.28 kB / 370.5 MB, free: 21.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.6408, allocations: 147.4 kB / 370.7 MB, free: 21.12 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.739e-05/0.6408, allocations: 25.7 kB / 370.7 MB, free: 21.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.491e-05/0.6409, allocations: 136.1 kB / 370.8 MB, free: 20.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.037e-05/0.641, allocations: 54.38 kB / 370.9 MB, free: 20.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.689e-05/0.641, allocations: 0 / 370.9 MB, free: 20.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.6412, allocations: 321.2 kB / 371.2 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.6413, allocations: 54.12 kB / 371.2 MB, free: 20.64 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/0.6416, allocations: 130.2 kB / 371.4 MB, free: 20.55 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/0.6417, allocations: 73.17 kB / 371.4 MB, free: 20.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.6418, allocations: 0 / 371.4 MB, free: 20.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000513/0.6423, allocations: 208.8 kB / 371.7 MB, free: 20.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.6423, allocations: 11.58 kB / 371.7 MB, free: 20.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.6423, allocations: 7.922 kB / 371.7 MB, free: 20.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/0.6424, allocations: 8.062 kB / 371.7 MB, free: 20.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002605/0.6426, allocations: 33.3 kB / 371.7 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.488e-05/0.6427, allocations: 6.797 kB / 371.7 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001841/0.6429, allocations: 15.28 kB / 371.7 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.467e-05/0.6429, allocations: 14.66 kB / 371.7 MB, free: 20.46 MB / 314.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,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,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.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,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.0001427/0.6431, allocations: 122.5 kB / 371.9 MB, free: 20.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.594e-05/0.6431, allocations: 14.72 kB / 371.9 MB, free: 20.33 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005536/0.6437, allocations: 179.2 kB / 372.1 MB, free: 20.28 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.6437, allocations: 6.344 kB / 372.1 MB, free: 20.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.6437, allocations: 1.219 kB / 372.1 MB, free: 20.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.6438, allocations: 0 / 372.1 MB, free: 20.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/0.6449, allocations: 0.5163 MB / 372.6 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.6449, allocations: 3.953 kB / 372.6 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/0.6451, allocations: 14.69 kB / 372.6 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.6451, allocations: 5.281 kB / 372.6 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.6451, allocations: 0 / 372.6 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.6451, allocations: 1.312 kB / 372.6 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.6451, allocations: 1.25 kB / 372.6 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004862/0.6456, allocations: 256.9 kB / 372.9 MB, free: 19.81 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.087e-05/0.6457, allocations: 92.88 kB / 372.9 MB, free: 19.71 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.131e-05/0.6458, allocations: 7.375 kB / 373 MB, free: 19.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.646, allocations: 10.67 kB / 373 MB, free: 19.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.6461, allocations: 27.73 kB / 373 MB, free: 19.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-05/0.6461, allocations: 8.656 kB / 373 MB, free: 19.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.649e-05/0.6462, allocations: 91.5 kB / 373.1 MB, free: 19.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6463, allocations: 0 / 373.1 MB, free: 19.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005101/0.6468, allocations: 33.98 kB / 373.1 MB, free: 19.62 MB / 314.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,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,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.0009816/0.6478, allocations: 0.8037 MB / 373.9 MB, free: 18.94 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004937/0.6483, allocations: 150.3 kB / 374.1 MB, free: 18.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.6483, allocations: 0 / 374.1 MB, free: 18.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001954/0.6485, allocations: 74.8 kB / 374.1 MB, free: 18.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.6489, allocations: 9.344 kB / 374.2 MB, free: 18.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009968/0.6499, allocations: 271.7 kB / 374.4 MB, free: 18.77 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.6503, allocations: 0.7417 MB / 375.2 MB, free: 18.07 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001687/0.6505, allocations: 29.53 kB / 375.2 MB, free: 18.06 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.6507, allocations: 57.8 kB / 375.2 MB, free: 18.05 MB / 314.7 MB Notification: Performance of SimCode: time 1.373e-06/0.6507, allocations: 0 / 375.2 MB, free: 18.05 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1048/0.7555, allocations: 3.054 MB / 378.3 MB, free: 17.81 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003648/0.7559, allocations: 142 kB / 378.4 MB, free: 17.62 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.184/3.94, allocations: 7.938 kB / 378.4 MB, free: 17.61 MB / 314.7 MB "" Variables in the reference:time,transition1.enableFire,transition2.enableFire Variables in the result:SetBoolean1.y,SetBoolean2.y,_D_cse1,_D_cse2,_D_whenCondition1,_D_whenCondition2,initialStep.active,initialStep.inPort[1].occupied,initialStep.inPort[1].set,initialStep.localActive,initialStep.nIn,initialStep.nOut,initialStep.newActive,initialStep.oldActive,initialStep.outPort[1].available,initialStep.outPort[1].reset,initialStep.outerStatePort.subgraphStatePort.activeSteps,initialStep.outerStatePort.subgraphStatePort.activeStepsDummy,initialStep.outerStatePort.subgraphStatePort.resume,initialStep.outerStatePort.subgraphStatePort.suspend,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.subgraphStatePort.activeSteps,stateGraphRoot.subgraphStatePort.activeStepsDummy,stateGraphRoot.subgraphStatePort.resume,stateGraphRoot.subgraphStatePort.suspend,stateGraphRoot.suspend,step.active,step.inPort[1].occupied,step.inPort[1].set,step.localActive,step.nIn,step.nOut,step.newActive,step.oldActive,step.outPort[1].available,step.outPort[1].reset,step.outerStatePort.subgraphStatePort.activeSteps,step.outerStatePort.subgraphStatePort.activeStepsDummy,step.outerStatePort.subgraphStatePort.resume,step.outerStatePort.subgraphStatePort.suspend,time,timer.entryTime,timer.u,timer.y,transition1.condition,transition1.enableFire,transition1.enableTimer,transition1.fire,transition1.inPort.available,transition1.inPort.reset,transition1.localCondition,transition1.outPort.occupied,transition1.outPort.set,transition1.t,transition1.t_dummy,transition1.t_start,transition1.waitTime,transition2.condition,transition2.enableFire,transition2.enableTimer,transition2.fire,transition2.inPort.available,transition2.inPort.reset,transition2.localCondition,transition2.outPort.occupied,transition2.outPort.set,transition2.t,transition2.t_dummy,transition2.t_start,transition2.waitTime