Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ExecutionPaths,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_ExecutionPaths",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.831/1.831, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.861e-05/2.87e-05, allocations: 0 / 225.1 MB, free: 2.258 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2694, allocations: 38.77 MB / 263.9 MB, free: 9.707 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1631/0.4326, allocations: 66.7 MB / 330.6 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002997/0.433, allocations: 67.97 kB / 330.6 MB, free: 6.848 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05069/0.4837, allocations: 11.41 MB / 342 MB, free: 11.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.4837, allocations: 0 / 342 MB, free: 11.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.04e-05/0.4838, allocations: 27.94 kB / 342.1 MB, free: 11.33 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.002437/0.4863, allocations: 0.8847 MB / 342.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/0.4864, allocations: 12.03 kB / 343 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003677/0.4867, allocations: 143.8 kB / 343.1 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002665/0.487, allocations: 90.95 kB / 343.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001013/0.488, allocations: 425.9 kB / 343.6 MB, free: 9.656 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.4882, allocations: 93.92 kB / 343.7 MB, free: 9.566 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002339/0.4885, allocations: 100 kB / 343.8 MB, free: 9.469 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002488/0.491, allocations: 0.9026 MB / 344.7 MB, free: 8.543 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.593e-05/0.491, allocations: 0 / 344.7 MB, free: 8.543 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.4912, allocations: 39.94 kB / 344.7 MB, free: 8.504 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.234e-05/0.4912, allocations: 24 kB / 344.8 MB, free: 8.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00225/0.4935, allocations: 0.6911 MB / 345.4 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006462/0.5, allocations: 2.341 MB / 347.8 MB, free: 5.371 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001567/0.5016, allocations: 0.6467 MB / 348.4 MB, free: 4.703 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00077/0.5024, allocations: 323.8 kB / 348.8 MB, free: 4.379 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001099/0.5026, allocations: 22.09 kB / 348.8 MB, free: 4.359 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009973/0.5036, allocations: 414.9 kB / 349.2 MB, free: 3.938 MB / 298.7 MB Notification: Performance of pre-optimization done (n=99): time 4.969e-06/0.5036, allocations: 4 kB / 349.2 MB, free: 3.934 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.001787/0.5054, allocations: 0.5896 MB / 349.8 MB, free: 3.336 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.5055, allocations: 105.8 kB / 349.9 MB, free: 3.215 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005487/0.5061, allocations: 292.2 kB / 350.2 MB, free: 2.922 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002113/0.5063, allocations: 73.69 kB / 350.2 MB, free: 2.844 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003221/0.5067, allocations: 285.1 kB / 350.5 MB, free: 2.559 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003483/0.507, allocations: 248.9 kB / 350.8 MB, free: 2.312 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.138e-05/0.5071, allocations: 27.94 kB / 350.8 MB, free: 2.285 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002029/0.5073, allocations: 374.8 kB / 351.1 MB, free: 1.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000798/0.5081, allocations: 250.6 kB / 351.4 MB, free: 1.664 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/0.5092, allocations: 457.2 kB / 351.8 MB, free: 1.145 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007948/0.51, allocations: 272.8 kB / 352.1 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.51, allocations: 4 kB / 352.1 MB, free: 0.875 MB / 298.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.002221/0.5123, allocations: 0.8241 MB / 352.9 MB, free: 44 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.36e-05/0.5123, allocations: 8.75 kB / 352.9 MB, free: 36 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/0.5124, allocations: 8 kB / 352.9 MB, free: 28 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.912e-05/0.5124, allocations: 16 kB / 353 MB, free: 12 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000802/0.5132, allocations: 115.6 kB / 353.1 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.145e-05/0.5133, allocations: 12 kB / 353.1 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006231/0.5139, allocations: 71.67 kB / 353.2 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.514, allocations: 47.98 kB / 353.2 MB, free: 15.77 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 124 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition3.enableFire,$PRE.transition4.enableFire,$PRE.transition5.enableFire,$PRE.transition6.enableFire,$PRE.transition7.enableFire,$PRE.transition4a.enableFire,$PRE.transition6a.enableFire,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.step0.localActive,step0.localActive,$PRE.step0.newActive,step0.newActive,$PRE.step0.oldActive,step0.oldActive,step0.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step1.localActive,step1.localActive,$PRE.step1.newActive,step1.newActive,$PRE.step1.oldActive,step1.oldActive,step1.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,$PRE.step6.localActive,step6.localActive,$PRE.step6.newActive,step6.newActive,$PRE.step6.oldActive,step6.oldActive,step6.active,$PRE.step2.localActive,step2.localActive,step2.outPort[1].reset,$PRE.step2.newActive,step2.newActive,$PRE.step2.oldActive,step2.oldActive,step2.active,transition3.enableFire,transition3.fire,$PRE.transition3.t_start,transition3.t_start,transition4.enableFire,transition4.fire,$PRE.transition4.t_start,transition4.t_start,$PRE.step3.localActive,step3.localActive,$PRE.step3.newActive,step3.newActive,$PRE.step3.oldActive,step3.oldActive,step3.active,$PRE.step4.localActive,step4.localActive,$PRE.step4.newActive,step4.newActive,$PRE.step4.oldActive,step4.oldActive,step4.active,transition5.enableFire,transition5.fire,$PRE.transition5.t_start,transition5.t_start,transition6.enableFire,transition6.fire,$PRE.transition6.t_start,transition6.t_start,$PRE.step5.localActive,step5.localActive,step5.inPort[1].set,$PRE.step5.newActive,step5.newActive,$PRE.step5.oldActive,step5.oldActive,step5.active,transition7.enableFire,setCondition.y,transition4a.enableFire,transition4a.fire,$PRE.transition4a.t_start,transition4a.t_start,$PRE.step4a.localActive,step4a.localActive,$PRE.step4a.newActive,step4a.newActive,$PRE.step4a.oldActive,step4a.oldActive,step4a.active,transition6a.enableFire,transition6a.fire,$PRE.transition6a.t_start,transition6a.t_start,alternative.split[2].available,alternative.split[3].available,Parallel1.inPort.occupied,Parallel1.outPort.available,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition6a.condition,transition4a.condition,transition6.condition,transition5.condition,transition4.condition,transition3.condition,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 154 * 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.0003678/0.5144, allocations: 223.3 kB / 353.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001525/0.5146, allocations: 55.36 kB / 353.5 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002025/0.5166, allocations: 0.7339 MB / 354.2 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.438e-05/0.5167, allocations: 16 kB / 354.2 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.5167, allocations: 0 / 354.2 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/0.5167, allocations: 3.984 kB / 354.2 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004241/0.521, allocations: 1.643 MB / 355.9 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.5211, allocations: 3.938 kB / 355.9 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005275/0.5216, allocations: 67.84 kB / 355.9 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.67e-05/0.5216, allocations: 8 kB / 356 MB, free: 12.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-05/0.5217, allocations: 19.98 kB / 356 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.181e-05/0.5217, allocations: 4 kB / 356 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.5218, allocations: 0 / 356 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00169/0.5235, allocations: 0.7795 MB / 356.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001277/0.5236, allocations: 132.4 kB / 356.9 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.5237, allocations: 24 kB / 356.9 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004706/0.5242, allocations: 39.97 kB / 356.9 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003264/0.5246, allocations: 104.8 kB / 357 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.525e-05/0.5247, allocations: 32 kB / 357.1 MB, free: 11.78 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000214/0.5249, allocations: 161.3 kB / 357.2 MB, free: 11.63 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.5249, allocations: 0 / 357.2 MB, free: 11.63 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009994/0.5259, allocations: 171.9 kB / 357.4 MB, free: 11.46 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 84 (transition4a.enableFire,transition4.enableFire,transition6a.enableFire,step4a.localActive,transition2.enableFire,step5.localActive,transition5.enableFire,transition6.enableFire,step4.localActive,step3.localActive,transition3.enableFire,transition1.enableFire,step2.localActive,step6.localActive,step1.localActive,step0.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$cse7,$cse8,$cse9,$cse10,$cse11,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,step0.newActive,step0.oldActive,step0.active,transition1.fire,transition1.t_start,step1.newActive,step1.oldActive,step1.active,transition2.fire,transition2.t_start,step6.newActive,step6.oldActive,step6.active,step2.outPort[1].reset,step2.newActive,step2.oldActive,step2.active,transition3.fire,transition3.t_start,transition4.fire,transition4.t_start,step3.newActive,step3.oldActive,step3.active,step4.newActive,step4.oldActive,step4.active,transition5.fire,transition5.t_start,transition6.fire,transition6.t_start,step5.inPort[1].set,step5.newActive,step5.oldActive,step5.active,transition7.enableFire,setCondition.y,transition4a.fire,transition4a.t_start,step4a.newActive,step4a.oldActive,step4a.active,transition6a.fire,transition6a.t_start,alternative.split[2].available,alternative.split[3].available,Parallel1.inPort.occupied,Parallel1.outPort.available,stateGraphRoot.activeSteps) * Number of discrete states: 8 (step0.newActive,step1.newActive,step6.newActive,step2.newActive,step3.newActive,step4.newActive,step5.newActive,step4a.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * 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.002312/0.5283, allocations: 1.456 MB / 358.9 MB, free: 9.969 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001913/0.5302, allocations: 0.6971 MB / 359.6 MB, free: 9.273 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.5303, allocations: 1.5 kB / 359.6 MB, free: 9.273 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009193/0.5312, allocations: 371.6 kB / 359.9 MB, free: 8.906 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006833/0.5319, allocations: 81.11 kB / 360 MB, free: 8.828 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003246/0.5351, allocations: 1.052 MB / 361.1 MB, free: 7.734 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007508/0.536, allocations: 0.9547 MB / 362 MB, free: 6.75 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005904/0.5366, allocations: 109.9 kB / 362.1 MB, free: 6.641 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006027/0.5372, allocations: 259.3 kB / 362.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of SimCode: time 1.323e-06/0.5372, allocations: 0 / 362.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2696/0.8068, allocations: 12.04 MB / 374.4 MB, free: 89.16 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002217/0.8071, allocations: 152.1 kB / 374.6 MB, free: 88.93 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.942/3.749, allocations: 0 / 374.6 MB, free: 88.93 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.StateGraph.Examples.ExecutionPaths_res.mat does not exist to compare? outputFormat=mat