Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowExceptions,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_ShowExceptions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.997/1.997, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.128e-05/3.132e-05, allocations: 4 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09682/0.09688, allocations: 44.51 MB / 299.9 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4072/0.5041, allocations: 72.01 MB / 372 MB, free: 21.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.5044, allocations: 67.7 kB / 372 MB, free: 21.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06446/0.5689, allocations: 17.03 MB / 389.1 MB, free: 20.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.569, allocations: 1.375 kB / 389.1 MB, free: 20.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.931e-05/0.569, allocations: 25.38 kB / 389.1 MB, free: 20.11 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.002328/0.5714, allocations: 0.9815 MB / 390.1 MB, free: 19.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.5715, allocations: 8.438 kB / 390.1 MB, free: 19.5 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003361/0.5718, allocations: 170.6 kB / 390.2 MB, free: 19.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003084/0.5721, allocations: 110.7 kB / 390.3 MB, free: 19.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.5732, allocations: 0.5477 MB / 390.9 MB, free: 19.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001328/0.5734, allocations: 109.9 kB / 391 MB, free: 19.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000226/0.5736, allocations: 121.3 kB / 391.1 MB, free: 19.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00279/0.5764, allocations: 1.202 MB / 392.3 MB, free: 18.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.775e-05/0.5765, allocations: 0 / 392.3 MB, free: 18.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001465/0.5767, allocations: 47.03 kB / 392.4 MB, free: 18.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.813e-05/0.5767, allocations: 30.97 kB / 392.4 MB, free: 18.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002327/0.579, allocations: 0.9 MB / 393.3 MB, free: 18.89 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006239/0.5853, allocations: 4.08 MB / 397.4 MB, free: 17.06 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.5869, allocations: 0.7646 MB / 398.1 MB, free: 17.01 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008168/0.5878, allocations: 399.7 kB / 398.5 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.56e-05/0.5879, allocations: 16.47 kB / 398.5 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009736/0.5889, allocations: 447.5 kB / 399 MB, free: 16.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 4.489e-06/0.5889, allocations: 3.906 kB / 399 MB, free: 16.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.001773/0.5907, allocations: 0.7231 MB / 399.7 MB, free: 16.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.817e-05/0.5908, allocations: 83.58 kB / 399.8 MB, free: 16.78 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005701/0.5913, allocations: 371.6 kB / 400.2 MB, free: 16.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.5915, allocations: 85.16 kB / 400.2 MB, free: 16.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002646/0.5918, allocations: 431.8 kB / 400.7 MB, free: 16.33 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002569/0.5921, allocations: 278 kB / 400.9 MB, free: 16.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.429e-05/0.5922, allocations: 25.72 kB / 401 MB, free: 16.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.5923, allocations: 372.7 kB / 401.3 MB, free: 15.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008472/0.5931, allocations: 339.1 kB / 401.7 MB, free: 15.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009985/0.5941, allocations: 0.6317 MB / 402.3 MB, free: 15.52 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008863/0.595, allocations: 362.4 kB / 402.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/0.5951, allocations: 7.844 kB / 402.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.002308/0.5974, allocations: 1.05 MB / 403.7 MB, free: 15.34 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.5974, allocations: 8.781 kB / 403.7 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.955e-05/0.5975, allocations: 11.78 kB / 403.7 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.074e-05/0.5975, allocations: 23.42 kB / 403.7 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008333/0.5984, allocations: 146.1 kB / 403.9 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.207e-05/0.5984, allocations: 19.56 kB / 403.9 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007078/0.5991, allocations: 94.02 kB / 404 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001493/0.5993, allocations: 61.02 kB / 404.1 MB, free: 15.28 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.0003461/0.5997, allocations: 278.1 kB / 404.3 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.5998, allocations: 54.69 kB / 404.4 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001897/0.6017, allocations: 0.819 MB / 405.2 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.6018, allocations: 11.59 kB / 405.2 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.6018, allocations: 0 / 405.2 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.6018, allocations: 3.516 kB / 405.2 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004108/0.6059, allocations: 1.973 MB / 407.2 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/0.606, allocations: 3.719 kB / 407.2 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005305/0.6065, allocations: 72.55 kB / 407.3 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.416e-05/0.6065, allocations: 7.844 kB / 407.3 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-05/0.6066, allocations: 29.47 kB / 407.3 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.465e-06/0.6066, allocations: 3.812 kB / 407.3 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.6066, allocations: 0 / 407.3 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001597/0.6083, allocations: 0.8351 MB / 408.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.6084, allocations: 135.7 kB / 408.3 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/0.6085, allocations: 25.28 kB / 408.3 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004428/0.609, allocations: 34.83 kB / 408.3 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003969/0.6094, allocations: 154.6 kB / 408.5 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.45e-05/0.6095, allocations: 34.14 kB / 408.5 MB, free: 14.24 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002626/0.6098, allocations: 198.2 kB / 408.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6098, allocations: 4 kB / 408.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001027/0.6108, allocations: 188.3 kB / 408.9 MB, free: 14.15 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.0025/0.6133, allocations: 1.458 MB / 410.3 MB, free: 29.4 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002054/0.6154, allocations: 0.8862 MB / 411.2 MB, free: 29.35 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.6155, allocations: 2.438 kB / 411.2 MB, free: 29.35 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008128/0.6163, allocations: 417.9 kB / 411.6 MB, free: 29.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006522/0.6169, allocations: 78.56 kB / 411.7 MB, free: 29.31 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003957/0.6209, allocations: 1.31 MB / 413 MB, free: 28.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006592/0.6216, allocations: 0.9901 MB / 414 MB, free: 28.13 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007702/0.6224, allocations: 328.6 kB / 414.3 MB, free: 28.09 MB / 330.7 MB Notification: Performance of SimCode: time 1.292e-06/0.6224, allocations: 4 kB / 414.3 MB, free: 28.08 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.831/3.454, allocations: 14.28 MB / 428.6 MB, free: 20.91 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.ShowExceptions_res.mat does not exist to compare? outputFormat=mat