Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ExecutionPaths,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_ExecutionPaths",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.054/2.054, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.128e-05/3.146e-05, allocations: 3.094 kB / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 44.5 MB / 299.9 MB, free: 6.566 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4226/0.5267, allocations: 71.99 MB / 371.9 MB, free: 21.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003503/0.5271, allocations: 69.58 kB / 372 MB, free: 21.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06908/0.5962, allocations: 11.41 MB / 383.4 MB, free: 20.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.5963, allocations: 0 / 383.4 MB, free: 20.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.559e-05/0.5964, allocations: 22.31 kB / 383.4 MB, free: 20.8 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.002835/0.5992, allocations: 0.8948 MB / 384.3 MB, free: 20.22 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.741e-05/0.5993, allocations: 8.812 kB / 384.3 MB, free: 20.22 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003809/0.5997, allocations: 142.2 kB / 384.4 MB, free: 20.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003706/0.6001, allocations: 91.38 kB / 384.5 MB, free: 20.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/0.6014, allocations: 437.2 kB / 385 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001779/0.6016, allocations: 86.25 kB / 385 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003184/0.6019, allocations: 105.1 kB / 385.1 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004108/0.606, allocations: 0.9099 MB / 386.1 MB, free: 19.78 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.31e-05/0.6062, allocations: 1.875 kB / 386.1 MB, free: 19.78 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001839/0.6064, allocations: 33.94 kB / 386.1 MB, free: 19.78 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.542e-05/0.6064, allocations: 23.12 kB / 386.1 MB, free: 19.78 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003375/0.6098, allocations: 0.7088 MB / 386.8 MB, free: 19.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007144/0.617, allocations: 2.348 MB / 389.2 MB, free: 18.9 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001995/0.6191, allocations: 0.6541 MB / 389.8 MB, free: 18.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009353/0.6201, allocations: 328.7 kB / 390.1 MB, free: 18.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001338/0.6202, allocations: 12.5 kB / 390.2 MB, free: 18.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001218/0.6215, allocations: 435.5 kB / 390.6 MB, free: 18.71 MB / 314.7 MB Notification: Performance of pre-optimization done (n=99): time 6.502e-06/0.6215, allocations: 0 / 390.6 MB, free: 18.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.002123/0.6236, allocations: 0.5969 MB / 391.2 MB, free: 18.63 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.607e-05/0.6238, allocations: 95.91 kB / 391.3 MB, free: 18.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005984/0.6244, allocations: 288.6 kB / 391.6 MB, free: 18.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002812/0.6247, allocations: 72.88 kB / 391.6 MB, free: 18.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003381/0.625, allocations: 353.8 kB / 392 MB, free: 18.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000376/0.6254, allocations: 244.3 kB / 392.2 MB, free: 18.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.774e-05/0.6256, allocations: 25.72 kB / 392.2 MB, free: 18.01 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.6257, allocations: 358.5 kB / 392.6 MB, free: 17.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009464/0.6267, allocations: 253.9 kB / 392.8 MB, free: 17.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.6278, allocations: 467.2 kB / 393.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002553/0.6304, allocations: 271.7 kB / 393.6 MB, free: 17.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.256e-05/0.6304, allocations: 0 / 393.6 MB, free: 17.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.002601/0.6331, allocations: 0.8351 MB / 394.4 MB, free: 17.33 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.599e-05/0.6331, allocations: 15.77 kB / 394.4 MB, free: 17.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.6332, allocations: 3.844 kB / 394.4 MB, free: 17.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.655e-05/0.6332, allocations: 15.66 kB / 394.4 MB, free: 17.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008691/0.6341, allocations: 111.2 kB / 394.5 MB, free: 17.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.38e-05/0.6342, allocations: 15.69 kB / 394.5 MB, free: 17.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007895/0.635, allocations: 72.09 kB / 394.6 MB, free: 17.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/0.6351, allocations: 50.05 kB / 394.7 MB, free: 17.28 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.0003797/0.6355, allocations: 217.2 kB / 394.9 MB, free: 17.13 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/0.6357, allocations: 50.44 kB / 394.9 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02294/0.6587, allocations: 0.7406 MB / 395.7 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.919e-05/0.6587, allocations: 11.72 kB / 395.7 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.6588, allocations: 0 / 395.7 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.03e-05/0.6588, allocations: 6.891 kB / 395.7 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01993/0.6787, allocations: 1.646 MB / 397.3 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.6788, allocations: 0 / 397.3 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006596/0.6795, allocations: 73.11 kB / 397.4 MB, free: 16.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.856e-05/0.6795, allocations: 3.906 kB / 397.4 MB, free: 16.63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.822e-05/0.6796, allocations: 25.48 kB / 397.4 MB, free: 16.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.286e-05/0.6797, allocations: 11.8 kB / 397.4 MB, free: 16.62 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.6797, allocations: 0 / 397.4 MB, free: 16.62 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0151/0.6948, allocations: 0.7778 MB / 398.2 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.695, allocations: 124 kB / 398.3 MB, free: 16.29 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/0.6951, allocations: 30.41 kB / 398.4 MB, free: 16.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005823/0.6957, allocations: 38.47 kB / 398.4 MB, free: 16.28 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003838/0.6961, allocations: 103.9 kB / 398.5 MB, free: 16.28 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/0.6963, allocations: 38.8 kB / 398.6 MB, free: 16.28 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002134/0.6965, allocations: 149.9 kB / 398.7 MB, free: 16.2 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6965, allocations: 0 / 398.7 MB, free: 16.2 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001204/0.6977, allocations: 169.9 kB / 398.9 MB, free: 16.2 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.002361/0.7001, allocations: 1.464 MB / 400.3 MB, free: 15.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.006442/0.7066, allocations: 0.7236 MB / 401.1 MB, free: 15.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/0.7066, allocations: 4.188 kB / 401.1 MB, free: 15.3 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001321/0.708, allocations: 364 kB / 401.4 MB, free: 15.28 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.7091, allocations: 73.81 kB / 401.5 MB, free: 15.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005657/0.7148, allocations: 1.049 MB / 402.5 MB, free: 14.92 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007432/0.7156, allocations: 0.9545 MB / 403.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009481/0.7166, allocations: 263.9 kB / 403.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of SimCode: time 1.623e-06/0.7166, allocations: 3.938 kB / 403.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.699/3.415, allocations: 11.25 MB / 415 MB, free: 10.78 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.ExecutionPaths_res.mat does not exist to compare? outputFormat=mat