Running command: "" <> buildModelFMU(Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_Interactive_UseRadioButtonSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_StateGraph2): time 2.189/2.189, allocations: 208.4 MB / 220.6 MB, free: 15.43 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.491e-05/3.495e-05, allocations: 0 / 271.3 MB, free: 12.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3475, allocations: 47.77 MB / 319.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1555/0.5031, allocations: 72.06 MB / 391.2 MB, free: 5.695 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.5033, allocations: 47.98 kB / 391.2 MB, free: 5.648 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02551/0.5289, allocations: 3.915 MB / 395.1 MB, free: 1.727 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5289, allocations: 0 / 395.1 MB, free: 1.727 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.456e-05/0.529, allocations: 4 kB / 395.1 MB, free: 1.723 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009804/0.53, allocations: 0.6466 MB / 395.8 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.062e-05/0.53, allocations: 12.03 kB / 395.8 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.36e-05/0.5301, allocations: 38.56 kB / 395.8 MB, free: 0.918 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.5303, allocations: 31.75 kB / 395.9 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005002/0.5308, allocations: 234.3 kB / 396.1 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.5309, allocations: 8 kB / 396.1 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.789e-05/0.531, allocations: 20 kB / 396.1 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005618/0.5315, allocations: 157.6 kB / 396.3 MB, free: 444 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.5316, allocations: 0 / 396.3 MB, free: 444 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.252e-05/0.5316, allocations: 4 kB / 396.3 MB, free: 440 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-05/0.5317, allocations: 15.88 kB / 396.3 MB, free: 424 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003302/0.532, allocations: 79.98 kB / 396.4 MB, free: 344 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007943/0.5328, allocations: 376.6 kB / 396.7 MB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007622/0.5336, allocations: 402 kB / 397.1 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004274/0.5341, allocations: 128.8 kB / 397.3 MB, free: 15.33 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.5341, allocations: 0 / 397.3 MB, free: 15.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009808/0.5351, allocations: 494.5 kB / 397.7 MB, free: 14.78 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 3.366e-06/0.5351, allocations: 4 kB / 397.7 MB, free: 14.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.001593/0.5368, allocations: 0.5229 MB / 398.3 MB, free: 14.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003798/0.5372, allocations: 472.9 kB / 398.7 MB, free: 13.64 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002832/0.5375, allocations: 145.2 kB / 398.9 MB, free: 13.49 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001279/0.5376, allocations: 53.69 kB / 398.9 MB, free: 13.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.5377, allocations: 104.9 kB / 399 MB, free: 13.33 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.5379, allocations: 79.19 kB / 399.1 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.386e-05/0.538, allocations: 8 kB / 399.1 MB, free: 13.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002076/0.5382, allocations: 334.8 kB / 399.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004478/0.5387, allocations: 112.5 kB / 399.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005668/0.5393, allocations: 209.6 kB / 399.8 MB, free: 12.56 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007173/0.54, allocations: 391.2 kB / 400.1 MB, free: 12.12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-06/0.54, allocations: 8 kB / 400.1 MB, free: 12.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001745/0.5418, allocations: 0.6682 MB / 400.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002727/0.5421, allocations: 279.2 kB / 401.1 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/0.5421, allocations: 7.938 kB / 401.1 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.162e-05/0.5422, allocations: 4 kB / 401.1 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.5423, allocations: 15.92 kB / 401.1 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.269e-05/0.5424, allocations: 7.938 kB / 401.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000348/0.5427, allocations: 20.19 kB / 401.1 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.5428, allocations: 24 kB / 401.2 MB, free: 10.98 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.start.pre_reset[1],$PRE.start.pre_reset[2],$PRE.stop.pre_reset[1],$PRE.stop.pre_reset[2],$PRE.shut.pre_reset[1],$PRE.shut.pre_reset[2],start.reset[2],stop.reset[2],$PRE.shut.on,shut.on,$PRE.start.on,start.on,stop.reset[1],shut.reset[1],start.reset[1],$PRE.stop.on,stop.on,shut.reset[2],$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,$PRE.shut.reset[1],$PRE.shut.reset[2],$PRE.shut.table.y,shut.table.y,$PRE.shut.table.nextTime,shut.table.nextTime,$PRE.shut.table.index,shut.table.index,shut.pre_reset[1],shut.pre_reset[2],$whenCondition5,$whenCondition7,$whenCondition6,$whenCondition8,$PRE.stop.reset[1],$PRE.stop.reset[2],$PRE.stop.table.y,stop.table.y,$PRE.stop.table.nextTime,stop.table.nextTime,$PRE.stop.table.index,stop.table.index,stop.pre_reset[1],stop.pre_reset[2],$whenCondition1,$whenCondition3,$whenCondition2,$whenCondition4,$PRE.start.reset[1],$PRE.start.reset[2],$PRE.start.table.y,start.table.y,$PRE.start.table.nextTime,start.table.nextTime,$PRE.start.table.index,start.table.index,start.pre_reset[1],start.pre_reset[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 9 * 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.0005661/0.5434, allocations: 364.4 kB / 401.5 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.5436, allocations: 39.75 kB / 401.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.97e-05/0.5436, allocations: 17.83 kB / 401.6 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.5437, allocations: 0 / 401.6 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-05/0.5437, allocations: 4 kB / 401.6 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.5437, allocations: 0 / 401.6 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002316/0.546, allocations: 0.9844 MB / 402.6 MB, free: 9.434 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.5461, allocations: 4 kB / 402.6 MB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.432e-05/0.5461, allocations: 0 / 402.6 MB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-05/0.5462, allocations: 3.953 kB / 402.6 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.5463, allocations: 23.97 kB / 402.6 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.266e-06/0.5463, allocations: 4 kB / 402.6 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5463, allocations: 0 / 402.6 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0019/0.5482, allocations: 0.7238 MB / 403.3 MB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.5484, allocations: 88.92 kB / 403.4 MB, free: 8.516 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/0.5486, allocations: 39.94 kB / 403.5 MB, free: 8.477 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004003/0.549, allocations: 23.98 kB / 403.5 MB, free: 8.453 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.5492, allocations: 27.91 kB / 403.5 MB, free: 8.426 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.253e-05/0.5493, allocations: 23.98 kB / 403.5 MB, free: 8.402 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000186/0.5495, allocations: 112.5 kB / 403.6 MB, free: 8.293 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.5495, allocations: 0 / 403.6 MB, free: 8.293 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001042/0.5506, allocations: 116 kB / 403.7 MB, free: 8.18 MB / 346.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: 36 ($whenCondition1,$whenCondition3,$whenCondition2,$whenCondition4,$whenCondition5,$whenCondition7,$whenCondition6,$whenCondition8,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,start.reset[1],start.reset[2],start.on,start.table.y,start.table.nextTime,start.table.index,start.pre_reset[1],start.pre_reset[2],stop.reset[1],stop.reset[2],stop.on,stop.table.y,stop.table.nextTime,stop.table.index,stop.pre_reset[1],stop.pre_reset[2],shut.reset[1],shut.reset[2],shut.on,shut.table.y,shut.table.nextTime,shut.table.index,shut.pre_reset[1],shut.pre_reset[2]) * Number of discrete states: 36 (shut.table.y,shut.table.nextTime,shut.table.index,$whenCondition9,$whenCondition12,shut.on,$whenCondition11,$whenCondition10,shut.pre_reset[2],shut.pre_reset[1],shut.reset[1],shut.reset[2],stop.table.y,stop.table.nextTime,stop.table.index,$whenCondition5,$whenCondition8,stop.on,$whenCondition7,$whenCondition6,stop.pre_reset[2],stop.pre_reset[1],stop.reset[1],stop.reset[2],start.table.y,start.table.nextTime,start.table.index,$whenCondition1,$whenCondition4,start.on,$whenCondition3,$whenCondition2,start.pre_reset[2],start.pre_reset[1],start.reset[1],start.reset[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 6 * 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 Backend phase and start with SimCode phase: time 0.002984/0.5536, allocations: 1.384 MB / 405.1 MB, free: 6.734 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001957/0.5556, allocations: 0.9242 MB / 406.1 MB, free: 5.699 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.5556, allocations: 0 / 406.1 MB, free: 5.699 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.5568, allocations: 0.6214 MB / 406.7 MB, free: 5.004 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.5572, allocations: 16 kB / 406.7 MB, free: 4.988 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001986/0.5592, allocations: 432.2 kB / 407.1 MB, free: 4.531 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004867/0.5597, allocations: 0.7328 MB / 407.8 MB, free: 3.773 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001395/0.5598, allocations: 33.52 kB / 407.9 MB, free: 3.742 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.56, allocations: 47.42 kB / 407.9 MB, free: 3.695 MB / 346.7 MB Notification: Performance of SimCode: time 1.252e-06/0.56, allocations: 0 / 407.9 MB, free: 3.695 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03535/0.5954, allocations: 5.305 MB / 413.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003125/0.5958, allocations: 175.6 kB / 413.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.562/3.158, allocations: 4 kB / 413.4 MB, free: 14.21 MB / 362.7 MB