Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowExceptions,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_StateGraph_Examples_ShowExceptions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.811e-05/3.817e-05, allocations: 11.98 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.267, allocations: 38.77 MB / 263.8 MB, free: 9.742 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1238/0.3909, allocations: 66.7 MB / 330.5 MB, free: 6.949 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002675/0.3912, allocations: 67.97 kB / 330.6 MB, free: 6.883 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06519/0.4564, allocations: 17.05 MB / 347.7 MB, free: 5.734 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4565, allocations: 0 / 347.7 MB, free: 5.734 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.138e-05/0.4566, allocations: 27.94 kB / 347.7 MB, free: 5.707 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.002669/0.4593, allocations: 0.9743 MB / 348.7 MB, free: 4.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.109e-05/0.4593, allocations: 8.031 kB / 348.7 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004329/0.4598, allocations: 177.2 kB / 348.8 MB, free: 4.469 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003134/0.4601, allocations: 110.7 kB / 348.9 MB, free: 4.359 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001294/0.4614, allocations: 0.5536 MB / 349.5 MB, free: 3.762 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000149/0.4616, allocations: 106.2 kB / 349.6 MB, free: 3.656 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002827/0.4619, allocations: 127.9 kB / 349.7 MB, free: 3.531 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003418/0.4653, allocations: 1.196 MB / 350.9 MB, free: 2.254 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.706e-05/0.4654, allocations: 0 / 350.9 MB, free: 2.254 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001593/0.4656, allocations: 51.94 kB / 351 MB, free: 2.203 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-05/0.4656, allocations: 28 kB / 351 MB, free: 2.176 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002854/0.4685, allocations: 0.902 MB / 351.9 MB, free: 1.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008512/0.477, allocations: 4.073 MB / 356 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002005/0.4791, allocations: 0.7641 MB / 356.7 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.4802, allocations: 403.8 kB / 357.1 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001124/0.4803, allocations: 20.92 kB / 357.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.4815, allocations: 451 kB / 357.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 4.599e-06/0.4815, allocations: 0 / 357.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.002124/0.4836, allocations: 0.7156 MB / 358.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.079e-05/0.4838, allocations: 76.34 kB / 358.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007206/0.4845, allocations: 381.6 kB / 358.8 MB, free: 10.24 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002206/0.4847, allocations: 85.69 kB / 358.8 MB, free: 10.15 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004274/0.4852, allocations: 431 kB / 359.3 MB, free: 9.723 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003629/0.4856, allocations: 268.6 kB / 359.5 MB, free: 9.457 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.4857, allocations: 32 kB / 359.6 MB, free: 9.426 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002173/0.4859, allocations: 358.8 kB / 359.9 MB, free: 9.066 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.4869, allocations: 340 kB / 360.2 MB, free: 8.734 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001334/0.4883, allocations: 0.6408 MB / 360.9 MB, free: 7.973 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.4894, allocations: 368.8 kB / 361.2 MB, free: 7.613 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/0.4894, allocations: 4 kB / 361.2 MB, free: 7.609 MB / 314.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.00288/0.4923, allocations: 1.051 MB / 362.3 MB, free: 6.551 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/0.4924, allocations: 8 kB / 362.3 MB, free: 6.543 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.444e-05/0.4924, allocations: 8 kB / 362.3 MB, free: 6.535 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.708e-05/0.4925, allocations: 20 kB / 362.3 MB, free: 6.516 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009297/0.4934, allocations: 147.6 kB / 362.5 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.222e-05/0.4935, allocations: 23.92 kB / 362.5 MB, free: 6.348 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007411/0.4942, allocations: 87.7 kB / 362.6 MB, free: 6.262 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001709/0.4944, allocations: 63.97 kB / 362.6 MB, free: 6.199 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 141 ($PRE.compositeStep.transition1.enableFire,$PRE.compositeStep.compositeStep11.transition.enableFire,$PRE.compositeStep.compositeStep12.transition.enableFire,$PRE.compositeStep.transition2.enableFire,$PRE.compositeStep.transition3.enableFire,$PRE.compositeStep.transition4.enableFire,$PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition3.enableFire,$PRE.transition4.enableFire,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.stateGraphRoot.suspend,compositeStep.stateGraphRoot.resume,compositeStep.active,$PRE.compositeStep.newActive,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition1.enableFire,compositeStep.transition1.condition,$PRE.compositeStep.initStep.localActive,compositeStep.initStep.localActive,compositeStep.initStep.outPort[1].reset,$PRE.compositeStep.initStep.newActive,compositeStep.initStep.newActive,$PRE.compositeStep.initStep.oldActive,compositeStep.initStep.oldActive,compositeStep.initStep.active,$PRE.compositeStep.exitStep.localActive,compositeStep.exitStep.localActive,compositeStep.exitStep.inPort[1].set,$PRE.compositeStep.exitStep.newActive,compositeStep.exitStep.newActive,$PRE.compositeStep.exitStep.oldActive,compositeStep.exitStep.oldActive,compositeStep.exitStep.active,compositeStep.compositeStep11.stateGraphRoot.suspend,compositeStep.compositeStep11.stateGraphRoot.resume,compositeStep.compositeStep11.active,$PRE.compositeStep.compositeStep11.newActive,compositeStep.compositeStep11.newActive,compositeStep.compositeStep11.activeSteps,compositeStep.compositeStep11.transition.enableFire,compositeStep.compositeStep11.transition.fire,$PRE.compositeStep.compositeStep11.transition.t_start,compositeStep.compositeStep11.transition.t_start,$PRE.compositeStep.compositeStep11.initStep.localActive,compositeStep.compositeStep11.initStep.localActive,$PRE.compositeStep.compositeStep11.initStep.newActive,compositeStep.compositeStep11.initStep.newActive,$PRE.compositeStep.compositeStep11.initStep.oldActive,compositeStep.compositeStep11.initStep.oldActive,compositeStep.compositeStep11.initStep.active,$PRE.compositeStep.compositeStep11.exitStep.localActive,compositeStep.compositeStep11.exitStep.localActive,$PRE.compositeStep.compositeStep11.exitStep.newActive,compositeStep.compositeStep11.exitStep.newActive,$PRE.compositeStep.compositeStep11.exitStep.oldActive,compositeStep.compositeStep11.exitStep.oldActive,compositeStep.compositeStep11.exitStep.active,compositeStep.compositeStep12.stateGraphRoot.suspend,compositeStep.compositeStep12.stateGraphRoot.resume,compositeStep.compositeStep12.active,$PRE.compositeStep.compositeStep12.newActive,compositeStep.compositeStep12.newActive,compositeStep.compositeStep12.activeSteps,compositeStep.compositeStep12.transition.enableFire,compositeStep.compositeStep12.transition.fire,$PRE.compositeStep.compositeStep12.transition.t_start,compositeStep.compositeStep12.transition.t_start,$PRE.compositeStep.compositeStep12.initStep.localActive,compositeStep.compositeStep12.initStep.localActive,$PRE.compositeStep.compositeStep12.initStep.newActive,compositeStep.compositeStep12.initStep.newActive,$PRE.compositeStep.compositeStep12.initStep.oldActive,compositeStep.compositeStep12.initStep.oldActive,compositeStep.compositeStep12.initStep.active,$PRE.compositeStep.compositeStep12.exitStep.localActive,compositeStep.compositeStep12.exitStep.localActive,$PRE.compositeStep.compositeStep12.exitStep.newActive,compositeStep.compositeStep12.exitStep.newActive,$PRE.compositeStep.compositeStep12.exitStep.oldActive,compositeStep.compositeStep12.exitStep.oldActive,compositeStep.compositeStep12.exitStep.active,compositeStep.transition2.enableFire,compositeStep.transition2.condition,compositeStep.transition3.enableFire,compositeStep.transition4.enableFire,compositeStep.Alternative1.split[2].available,$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,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,transition3.enableFire,transition3.fire,$PRE.transition3.t_start,transition3.t_start,$PRE.step1.localActive,step1.localActive,$PRE.step1.newActive,step1.newActive,$PRE.step1.oldActive,step1.oldActive,step1.active,transition4.enableFire,transition4.fire,$PRE.transition4.t_start,transition4.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition4.condition,transition3.condition,transition2.condition,transition1.condition,compositeStep.transition4.condition,compositeStep.transition3.condition,compositeStep.compositeStep12.resume[1].set,compositeStep.compositeStep12.suspend[1].reset,compositeStep.compositeStep12.transition.condition,compositeStep.compositeStep11.resume[1].set,compositeStep.compositeStep11.suspend[1].reset,compositeStep.compositeStep11.transition.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 184 * 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.0004712/0.4949, allocations: 272.5 kB / 362.9 MB, free: 5.914 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001738/0.4951, allocations: 67.17 kB / 363 MB, free: 5.848 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002327/0.4974, allocations: 0.8131 MB / 363.8 MB, free: 5.023 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/0.4975, allocations: 16 kB / 363.8 MB, free: 5.008 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.4975, allocations: 0 / 363.8 MB, free: 5.008 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.7e-05/0.4975, allocations: 3.984 kB / 363.8 MB, free: 5.004 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005041/0.5026, allocations: 1.96 MB / 365.8 MB, free: 2.984 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.5026, allocations: 0 / 365.8 MB, free: 2.984 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005861/0.5032, allocations: 87.69 kB / 365.9 MB, free: 2.898 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-05/0.5032, allocations: 4 kB / 365.9 MB, free: 2.895 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.197e-05/0.5033, allocations: 27.98 kB / 365.9 MB, free: 2.867 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.106e-05/0.5034, allocations: 7.938 kB / 365.9 MB, free: 2.859 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.5034, allocations: 4 kB / 365.9 MB, free: 2.855 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/0.5053, allocations: 0.8316 MB / 366.7 MB, free: 2.008 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001418/0.5055, allocations: 124.4 kB / 366.9 MB, free: 1.867 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.5057, allocations: 31.94 kB / 366.9 MB, free: 1.836 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004597/0.5061, allocations: 35.98 kB / 366.9 MB, free: 1.801 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004688/0.5066, allocations: 156.8 kB / 367.1 MB, free: 1.648 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.5067, allocations: 35.92 kB / 367.1 MB, free: 1.613 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003248/0.5071, allocations: 202.2 kB / 367.3 MB, free: 1.422 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.916e-06/0.5071, allocations: 0 / 367.3 MB, free: 1.422 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001097/0.5082, allocations: 195.8 kB / 367.5 MB, free: 1.23 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: 86 (compositeStep.stateGraphRoot.suspend,compositeStep.compositeStep11.stateGraphRoot.suspend,compositeStep.compositeStep12.stateGraphRoot.suspend,transition4.enableFire,step1.localActive,transition3.enableFire,transition2.enableFire,transition1.enableFire,initialStep.localActive,compositeStep.compositeStep12.exitStep.localActive,compositeStep.compositeStep12.transition.enableFire,compositeStep.compositeStep12.initStep.localActive,compositeStep.compositeStep11.exitStep.localActive,compositeStep.compositeStep11.transition.enableFire,compositeStep.compositeStep11.initStep.localActive,compositeStep.exitStep.localActive,compositeStep.initStep.localActive,$cse3,$cse4,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.stateGraphRoot.resume,compositeStep.active,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition1.enableFire,compositeStep.transition1.condition,compositeStep.initStep.outPort[1].reset,compositeStep.initStep.newActive,compositeStep.initStep.oldActive,compositeStep.initStep.active,compositeStep.exitStep.inPort[1].set,compositeStep.exitStep.newActive,compositeStep.exitStep.oldActive,compositeStep.exitStep.active,compositeStep.compositeStep11.stateGraphRoot.resume,compositeStep.compositeStep11.active,compositeStep.compositeStep11.newActive,compositeStep.compositeStep11.activeSteps,compositeStep.compositeStep11.transition.fire,compositeStep.compositeStep11.transition.t_start,compositeStep.compositeStep11.initStep.newActive,compositeStep.compositeStep11.initStep.oldActive,compositeStep.compositeStep11.initStep.active,compositeStep.compositeStep11.exitStep.newActive,compositeStep.compositeStep11.exitStep.oldActive,compositeStep.compositeStep11.exitStep.active,compositeStep.compositeStep12.stateGraphRoot.resume,compositeStep.compositeStep12.active,compositeStep.compositeStep12.newActive,compositeStep.compositeStep12.activeSteps,compositeStep.compositeStep12.transition.fire,compositeStep.compositeStep12.transition.t_start,compositeStep.compositeStep12.initStep.newActive,compositeStep.compositeStep12.initStep.oldActive,compositeStep.compositeStep12.initStep.active,compositeStep.compositeStep12.exitStep.newActive,compositeStep.compositeStep12.exitStep.oldActive,compositeStep.compositeStep12.exitStep.active,compositeStep.transition2.enableFire,compositeStep.transition2.condition,compositeStep.transition3.enableFire,compositeStep.transition4.enableFire,compositeStep.Alternative1.split[2].available,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,transition2.fire,transition2.t_start,transition3.fire,transition3.t_start,step1.newActive,step1.oldActive,step1.active,transition4.fire,transition4.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 11 (compositeStep.initStep.newActive,compositeStep.exitStep.newActive,compositeStep.compositeStep11.initStep.newActive,compositeStep.compositeStep11.exitStep.newActive,compositeStep.compositeStep11.newActive,compositeStep.compositeStep12.initStep.newActive,compositeStep.compositeStep12.exitStep.newActive,compositeStep.compositeStep12.newActive,compositeStep.newActive,initialStep.newActive,step1.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.2252/0.7335, allocations: 1.456 MB / 369 MB, free: 86.65 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00309/0.7366, allocations: 0.8822 MB / 369.8 MB, free: 86.65 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.7367, allocations: 0 / 369.8 MB, free: 86.65 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001142/0.7378, allocations: 409.1 kB / 370.2 MB, free: 86.64 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006534/0.7385, allocations: 75.39 kB / 370.3 MB, free: 86.64 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004167/0.7427, allocations: 1.303 MB / 371.6 MB, free: 86.28 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000606/0.7433, allocations: 0.9989 MB / 372.6 MB, free: 85.58 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007848/0.7441, allocations: 325.9 kB / 372.9 MB, free: 85.57 MB / 314.7 MB Notification: Performance of SimCode: time 1.563e-06/0.7441, allocations: 0 / 372.9 MB, free: 85.57 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.896/3.64, allocations: 14.29 MB / 387.2 MB, free: 81.22 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.ShowExceptions_res.mat does not exist to compare? outputFormat=mat