Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_StateGraph_Examples_FirstExample_Variant2",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.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.889e-05/2.911e-05, allocations: 2.625 kB / 249.7 MB, free: 5.277 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1025, allocations: 44.52 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.485/0.5876, allocations: 70.76 MB / 365 MB, free: 7.23 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.5879, allocations: 66.22 kB / 365.1 MB, free: 7.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01502/0.6029, allocations: 2.89 MB / 368 MB, free: 22.74 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.603, allocations: 3.938 kB / 368 MB, free: 22.74 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.52e-05/0.603, allocations: 11.31 kB / 368 MB, free: 22.73 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.0007899/0.6038, allocations: 444.7 kB / 368.4 MB, free: 22.35 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.523e-05/0.6039, allocations: 12.5 kB / 368.4 MB, free: 22.35 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.95e-05/0.604, allocations: 49.06 kB / 368.5 MB, free: 22.31 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.135e-05/0.6041, allocations: 23.28 kB / 368.5 MB, free: 22.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003618/0.6045, allocations: 228 kB / 368.7 MB, free: 22.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.26e-05/0.6046, allocations: 12.06 kB / 368.7 MB, free: 22.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.474e-05/0.6046, allocations: 15.5 kB / 368.8 MB, free: 22.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005151/0.6052, allocations: 148.2 kB / 368.9 MB, free: 22.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005923/0.6058, allocations: 229.5 kB / 369.1 MB, free: 22 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.6058, allocations: 0 / 369.1 MB, free: 22 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.828e-05/0.6059, allocations: 6.75 kB / 369.1 MB, free: 22 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.6059, allocations: 7.875 kB / 369.1 MB, free: 22 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.6075, allocations: 0.8898 MB / 370 MB, free: 21.39 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003845/0.6079, allocations: 141.2 kB / 370.2 MB, free: 21.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.6081, allocations: 66.91 kB / 370.2 MB, free: 21.35 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.525e-05/0.6081, allocations: 4.141 kB / 370.2 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003095/0.6085, allocations: 99.5 kB / 370.3 MB, free: 21.3 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.897e-06/0.6085, allocations: 0 / 370.3 MB, free: 21.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.000491/0.609, allocations: 153.4 kB / 370.5 MB, free: 21.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.6091, allocations: 55.22 kB / 370.5 MB, free: 21.18 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.6092, allocations: 146.3 kB / 370.7 MB, free: 21.08 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.449e-05/0.6093, allocations: 33.42 kB / 370.7 MB, free: 21.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.845e-05/0.6094, allocations: 139.6 kB / 370.8 MB, free: 20.94 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.769e-05/0.6095, allocations: 55.95 kB / 370.9 MB, free: 20.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.91e-05/0.6095, allocations: 0 / 370.9 MB, free: 20.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.6097, allocations: 327.6 kB / 371.2 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.6099, allocations: 51.62 kB / 371.3 MB, free: 20.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.6101, allocations: 133 kB / 371.4 MB, free: 20.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.6103, allocations: 71.53 kB / 371.5 MB, free: 20.49 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.6104, allocations: 0 / 371.5 MB, free: 20.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005894/0.611, allocations: 211.8 kB / 371.7 MB, free: 20.43 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.611, allocations: 11.8 kB / 371.7 MB, free: 20.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.611, allocations: 11.92 kB / 371.7 MB, free: 20.42 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.755e-05/0.6111, allocations: 7.719 kB / 371.7 MB, free: 20.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003032/0.6114, allocations: 35.47 kB / 371.7 MB, free: 20.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.6114, allocations: 3.844 kB / 371.7 MB, free: 20.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001953/0.6116, allocations: 10.8 kB / 371.8 MB, free: 20.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.097e-05/0.6117, allocations: 14.75 kB / 371.8 MB, free: 20.41 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,greaterEqual.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.000175/0.6119, allocations: 123.3 kB / 371.9 MB, free: 20.29 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.675e-05/0.6119, allocations: 18.5 kB / 371.9 MB, free: 20.28 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006499/0.6126, allocations: 176.7 kB / 372.1 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.6126, allocations: 2.531 kB / 372.1 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.6126, allocations: 0 / 372.1 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.6127, allocations: 3.219 kB / 372.1 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001232/0.6139, allocations: 0.5161 MB / 372.6 MB, free: 19.92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.614, allocations: 1.25 kB / 372.6 MB, free: 19.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000173/0.6141, allocations: 18.16 kB / 372.6 MB, free: 19.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.367e-06/0.6142, allocations: 1.281 kB / 372.6 MB, free: 19.91 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.6142, allocations: 2.688 kB / 372.6 MB, free: 19.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.6142, allocations: 5.156 kB / 372.6 MB, free: 19.91 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.6142, allocations: 4.281 kB / 372.6 MB, free: 19.91 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005285/0.6148, allocations: 246 kB / 372.9 MB, free: 19.77 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.081e-05/0.6149, allocations: 92.97 kB / 373 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.845e-05/0.6149, allocations: 4.531 kB / 373 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.6151, allocations: 6.844 kB / 373 MB, free: 19.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.6153, allocations: 26 kB / 373 MB, free: 19.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.372e-05/0.6153, allocations: 10.56 kB / 373 MB, free: 19.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001007/0.6154, allocations: 93.94 kB / 373.1 MB, free: 19.58 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.6155, allocations: 0 / 373.1 MB, free: 19.58 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005703/0.616, allocations: 38.28 kB / 373.1 MB, free: 19.58 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,greaterEqual.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.001062/0.6171, allocations: 0.8127 MB / 374 MB, free: 18.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005328/0.6177, allocations: 154.7 kB / 374.1 MB, free: 18.88 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.6177, allocations: 0.6875 kB / 374.1 MB, free: 18.88 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002249/0.6179, allocations: 78.81 kB / 374.2 MB, free: 18.87 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000365/0.6183, allocations: 13.02 kB / 374.2 MB, free: 18.87 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.6195, allocations: 269.1 kB / 374.5 MB, free: 18.71 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.6199, allocations: 0.7422 MB / 375.2 MB, free: 18.02 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001728/0.6201, allocations: 24.16 kB / 375.2 MB, free: 18.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/0.6203, allocations: 61.83 kB / 375.3 MB, free: 18.01 MB / 314.7 MB Notification: Performance of SimCode: time 1.643e-06/0.6204, allocations: 3.938 kB / 375.3 MB, free: 18 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05653/0.6769, allocations: 3.074 MB / 378.4 MB, free: 17.76 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002921/0.6773, allocations: 150 kB / 378.5 MB, free: 17.56 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.065/3.743, allocations: 0 / 378.5 MB, free: 17.56 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,greaterEqual.threshold,greaterEqual.u,greaterEqual.y,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