Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_2_cs_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.436/2.436, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.357e-05/3.369e-05, allocations: 2.531 kB / 249.7 MB, free: 5.316 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1143, allocations: 44.51 MB / 294.3 MB, free: 10.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5033/0.6177, allocations: 70.13 MB / 364.4 MB, free: 7.035 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.618, allocations: 64.3 kB / 364.4 MB, free: 7.035 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01344/0.6315, allocations: 2.733 MB / 367.2 MB, free: 22.55 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.6316, allocations: 0 / 367.2 MB, free: 22.55 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.421e-05/0.6316, allocations: 7.875 kB / 367.2 MB, free: 22.55 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.000815/0.6324, allocations: 436.5 kB / 367.6 MB, free: 22.17 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.6325, allocations: 8.625 kB / 367.6 MB, free: 22.17 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.841e-05/0.6326, allocations: 54.7 kB / 367.7 MB, free: 22.13 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.734e-05/0.6327, allocations: 19.53 kB / 367.7 MB, free: 22.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003257/0.633, allocations: 227.8 kB / 367.9 MB, free: 21.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.998e-05/0.6331, allocations: 12.06 kB / 367.9 MB, free: 21.91 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.583e-05/0.6331, allocations: 17.86 kB / 367.9 MB, free: 21.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004934/0.6337, allocations: 143.7 kB / 368.1 MB, free: 21.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005388/0.6342, allocations: 203.4 kB / 368.3 MB, free: 21.85 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.6342, allocations: 0 / 368.3 MB, free: 21.85 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.313e-05/0.6343, allocations: 0 / 368.3 MB, free: 21.85 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.6343, allocations: 3.875 kB / 368.3 MB, free: 21.85 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.6357, allocations: 0.6369 MB / 368.9 MB, free: 21.49 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004078/0.6362, allocations: 154.1 kB / 369.1 MB, free: 21.46 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.6364, allocations: 71.22 kB / 369.1 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.6364, allocations: 4.188 kB / 369.2 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002586/0.6367, allocations: 108.9 kB / 369.3 MB, free: 21.4 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.356e-06/0.6367, allocations: 0 / 369.3 MB, free: 21.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004782/0.6372, allocations: 146.7 kB / 369.4 MB, free: 21.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.6372, allocations: 55.19 kB / 369.5 MB, free: 21.29 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.6374, allocations: 137 kB / 369.6 MB, free: 21.19 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.268e-05/0.6374, allocations: 32.86 kB / 369.6 MB, free: 21.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.17e-05/0.6375, allocations: 133.3 kB / 369.7 MB, free: 21.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.865e-05/0.6376, allocations: 54 kB / 369.8 MB, free: 21.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.716e-05/0.6377, allocations: 3.938 kB / 369.8 MB, free: 21.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.6378, allocations: 327.1 kB / 370.1 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001707/0.638, allocations: 52.38 kB / 370.2 MB, free: 20.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002167/0.6382, allocations: 121 kB / 370.3 MB, free: 20.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001968/0.6384, allocations: 57.66 kB / 370.4 MB, free: 20.62 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.6385, allocations: 1.312 kB / 370.4 MB, free: 20.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006177/0.6391, allocations: 212.4 kB / 370.6 MB, free: 20.56 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/0.6391, allocations: 6.344 kB / 370.6 MB, free: 20.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.6391, allocations: 1.219 kB / 370.6 MB, free: 20.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.773e-05/0.6392, allocations: 3.844 kB / 370.6 MB, free: 20.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002744/0.6395, allocations: 30.67 kB / 370.6 MB, free: 20.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.6395, allocations: 9.594 kB / 370.6 MB, free: 20.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.6397, allocations: 18.38 kB / 370.6 MB, free: 20.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.279e-05/0.6398, allocations: 13.5 kB / 370.6 MB, free: 20.54 MB / 314.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,$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,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.0001787/0.64, allocations: 133.3 kB / 370.8 MB, free: 20.41 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.663e-05/0.6401, allocations: 9.906 kB / 370.8 MB, free: 20.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005926/0.6407, allocations: 168.9 kB / 370.9 MB, free: 20.37 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.6407, allocations: 7.312 kB / 371 MB, free: 20.37 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.6407, allocations: 3.938 kB / 371 MB, free: 20.37 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.6407, allocations: 3.953 kB / 371 MB, free: 20.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/0.6419, allocations: 0.4975 MB / 371.5 MB, free: 20.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.6419, allocations: 0 / 371.5 MB, free: 20.08 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001704/0.6421, allocations: 26.31 kB / 371.5 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.087e-06/0.6421, allocations: 0 / 371.5 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.6422, allocations: 6.781 kB / 371.5 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.6422, allocations: 3.953 kB / 371.5 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.6422, allocations: 0 / 371.5 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004998/0.6427, allocations: 259.7 kB / 371.7 MB, free: 19.92 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.945e-05/0.6428, allocations: 95.81 kB / 371.8 MB, free: 19.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.132e-05/0.6428, allocations: 3.875 kB / 371.8 MB, free: 19.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001844/0.643, allocations: 6.734 kB / 371.9 MB, free: 19.82 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.6432, allocations: 27.16 kB / 371.9 MB, free: 19.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.002e-05/0.6432, allocations: 7.656 kB / 371.9 MB, free: 19.81 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.981e-05/0.6433, allocations: 88.84 kB / 372 MB, free: 19.74 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.6433, allocations: 0 / 372 MB, free: 19.74 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005423/0.6439, allocations: 38.25 kB / 372 MB, free: 19.73 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 (transition2.enableFire,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,step.active,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.0009336/0.6448, allocations: 0.8021 MB / 372.8 MB, free: 19.05 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004816/0.6453, allocations: 156.3 kB / 373 MB, free: 19.05 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.6454, allocations: 448 / 373 MB, free: 19.05 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002076/0.6456, allocations: 75.95 kB / 373 MB, free: 19.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.6459, allocations: 16.86 kB / 373.1 MB, free: 19.04 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.647, allocations: 265.1 kB / 373.3 MB, free: 18.89 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004027/0.6474, allocations: 0.7319 MB / 374 MB, free: 18.2 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001682/0.6476, allocations: 31.05 kB / 374.1 MB, free: 18.19 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.6478, allocations: 56.94 kB / 374.1 MB, free: 18.18 MB / 314.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6478, allocations: 0 / 374.1 MB, free: 18.18 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05163/0.6995, allocations: 3.032 MB / 377.2 MB, free: 17.93 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004574/0.7, allocations: 131 kB / 377.3 MB, free: 17.74 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.054/3.754, allocations: 4 kB / 377.3 MB, free: 17.74 MB / 314.7 MB "" Variables in the reference:time,transition1.enableFire,transition2.enableFire Variables in the result:_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,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