Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowExceptions,fileNamePrefix="Modelica_trunk_cpp_Modelica_StateGraph_Examples_ShowExceptions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.022/2.022, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.313e-05/3.329e-05, allocations: 6.031 kB / 292.2 MB, free: 8.766 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1113, allocations: 50.41 MB / 342.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4412/0.5526, allocations: 77.55 MB / 420.2 MB, free: 280 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.5529, allocations: 66.09 kB / 420.2 MB, free: 248 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07147/0.6244, allocations: 17.77 MB / 438 MB, free: 1.684 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.075e-06/0.6245, allocations: 0 / 438 MB, free: 1.684 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.993e-05/0.6246, allocations: 35.92 kB / 438 MB, free: 1.648 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 299 * Number of variables: 299 Notification: Performance of Generate backend data structure: time 0.003074/0.6277, allocations: 1.016 MB / 439.1 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.169e-05/0.6277, allocations: 12.03 kB / 439.1 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005096/0.6283, allocations: 182.6 kB / 439.2 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003599/0.6286, allocations: 114.7 kB / 439.4 MB, free: 404 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001346/0.63, allocations: 0.5673 MB / 439.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/0.6302, allocations: 104.6 kB / 440 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002931/0.6305, allocations: 139.2 kB / 440.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003547/0.634, allocations: 1.226 MB / 441.4 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.257e-05/0.6342, allocations: 0 / 441.4 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001613/0.6343, allocations: 52.95 kB / 441.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.702e-05/0.6344, allocations: 36 kB / 441.5 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002949/0.6373, allocations: 0.8857 MB / 442.4 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008591/0.646, allocations: 4.097 MB / 446.5 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002123/0.6482, allocations: 0.8406 MB / 447.3 MB, free: 9.844 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/0.6493, allocations: 439.1 kB / 447.7 MB, free: 9.402 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001149/0.6495, allocations: 16.98 kB / 447.7 MB, free: 9.387 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001299/0.6508, allocations: 0.5355 MB / 448.3 MB, free: 8.824 MB / 362.7 MB Notification: Performance of pre-optimization done (n=115): time 5.23e-06/0.6508, allocations: 0 / 448.3 MB, free: 8.824 MB / 362.7 MB Notification: Performance of matching and sorting (n=115): time 0.002232/0.6531, allocations: 0.7467 MB / 449 MB, free: 8.066 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.6533, allocations: 187.1 kB / 449.2 MB, free: 7.848 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007226/0.654, allocations: 377.8 kB / 449.6 MB, free: 7.473 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002642/0.6543, allocations: 93.67 kB / 449.7 MB, free: 7.375 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004323/0.6547, allocations: 431.3 kB / 450.1 MB, free: 6.949 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004111/0.6552, allocations: 276.5 kB / 450.4 MB, free: 6.676 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.774e-05/0.6553, allocations: 28 kB / 450.4 MB, free: 6.648 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002025/0.6555, allocations: 374.7 kB / 450.8 MB, free: 6.273 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001085/0.6566, allocations: 344 kB / 451.1 MB, free: 5.938 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001314/0.6579, allocations: 0.6526 MB / 451.7 MB, free: 5.156 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.659, allocations: 372.8 kB / 452.1 MB, free: 4.793 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.659, allocations: 0 / 452.1 MB, free: 4.793 MB / 362.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.002904/0.662, allocations: 1.075 MB / 453.2 MB, free: 3.711 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.035e-05/0.6621, allocations: 8 kB / 453.2 MB, free: 3.703 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.357e-05/0.6621, allocations: 8 kB / 453.2 MB, free: 3.695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.809e-05/0.6621, allocations: 20 kB / 453.2 MB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009793/0.6631, allocations: 147.6 kB / 453.4 MB, free: 3.531 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.7e-05/0.6632, allocations: 27.92 kB / 453.4 MB, free: 3.504 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000756/0.664, allocations: 79.52 kB / 453.5 MB, free: 3.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001791/0.6642, allocations: 76.02 kB / 453.5 MB, free: 3.352 MB / 362.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: 149 ($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,$PRE.compositeStep.transition1.t_start,compositeStep.transition1.t_start,$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,$PRE.compositeStep.transition2.t_start,compositeStep.transition2.t_start,$PRE.compositeStep.transition3.t_start,compositeStep.transition3.t_start,$PRE.compositeStep.transition4.t_start,compositeStep.transition4.t_start,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 (188): * Single equations (assignments): 188 * 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.000513/0.6647, allocations: 277.5 kB / 453.8 MB, free: 3.062 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001938/0.6649, allocations: 59.33 kB / 453.9 MB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002308/0.6672, allocations: 0.8124 MB / 454.7 MB, free: 2.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.028e-05/0.6673, allocations: 12 kB / 454.7 MB, free: 2.168 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.6673, allocations: 0 / 454.7 MB, free: 2.168 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.827e-05/0.6674, allocations: 11.98 kB / 454.7 MB, free: 2.156 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005329/0.6727, allocations: 2.007 MB / 456.7 MB, free: 96 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.6728, allocations: 4 kB / 456.7 MB, free: 92 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005951/0.6734, allocations: 83.75 kB / 456.8 MB, free: 8 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.75e-05/0.6734, allocations: 7.938 kB / 456.8 MB, free: 0 / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001224/0.6736, allocations: 28.06 kB / 456.8 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.24e-05/0.6736, allocations: 4 kB / 456.8 MB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.6736, allocations: 4 kB / 456.8 MB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002053/0.6757, allocations: 0.9285 MB / 457.8 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001634/0.6759, allocations: 132.4 kB / 457.9 MB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.676, allocations: 24 kB / 457.9 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005171/0.6765, allocations: 43.97 kB / 458 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004685/0.677, allocations: 156.7 kB / 458.1 MB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.6772, allocations: 43.97 kB / 458.2 MB, free: 14.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003067/0.6775, allocations: 194.2 kB / 458.4 MB, free: 14.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6775, allocations: 0 / 458.4 MB, free: 14.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001172/0.6787, allocations: 199.8 kB / 458.5 MB, free: 14.18 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 90 (compositeStep.transition4.t_start,compositeStep.transition3.t_start,compositeStep.transition2.t_start,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,compositeStep.transition1.t_start) * Number of discrete states: 15 (compositeStep.transition1.t_start,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,compositeStep.transition2.t_start,compositeStep.transition3.t_start,compositeStep.transition4.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * 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.002753/0.6815, allocations: 1.844 MB / 460.4 MB, free: 12.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002485/0.684, allocations: 0.9116 MB / 461.3 MB, free: 11.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.6841, allocations: 2.5 kB / 461.3 MB, free: 11.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.6852, allocations: 427.6 kB / 461.7 MB, free: 10.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007184/0.686, allocations: 80.98 kB / 461.8 MB, free: 10.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004924/0.6909, allocations: 1.366 MB / 463.2 MB, free: 9.453 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008196/0.6918, allocations: 1.018 MB / 464.2 MB, free: 8.406 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009531/0.6928, allocations: 335.3 kB / 464.5 MB, free: 8.078 MB / 378.7 MB Notification: Performance of SimCode: time 1.353e-06/0.6928, allocations: 0 / 464.5 MB, free: 8.078 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.658/3.351, allocations: 14.61 MB / 479.1 MB, free: 9.477 MB / 394.7 MB