Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowCompositeStep,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_ShowCompositeStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.992/1.992, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.149e-05/3.144e-05, allocations: 0 / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09909/0.09915, allocations: 44.5 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4265/0.5257, allocations: 72.42 MB / 372.4 MB, free: 21.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003536/0.5261, allocations: 68.53 kB / 372.4 MB, free: 21.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05147/0.5776, allocations: 13.51 MB / 385.9 MB, free: 20.36 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5777, allocations: 5.281 kB / 385.9 MB, free: 20.36 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.782e-05/0.5777, allocations: 22.44 kB / 386 MB, free: 20.35 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002031/0.5798, allocations: 0.9254 MB / 386.9 MB, free: 19.76 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.5798, allocations: 9.312 kB / 386.9 MB, free: 19.76 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002525/0.5801, allocations: 149.5 kB / 387 MB, free: 19.72 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002386/0.5803, allocations: 100.5 kB / 387.1 MB, free: 19.67 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009606/0.5813, allocations: 496.7 kB / 387.6 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/0.5814, allocations: 90.28 kB / 387.7 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002529/0.5817, allocations: 116.6 kB / 387.8 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002429/0.5841, allocations: 0.9996 MB / 388.8 MB, free: 19.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.284e-05/0.5842, allocations: 0 / 388.8 MB, free: 19.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001501/0.5844, allocations: 48.94 kB / 388.9 MB, free: 19.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.179e-05/0.5844, allocations: 23.78 kB / 388.9 MB, free: 19.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002135/0.5865, allocations: 0.7992 MB / 389.7 MB, free: 19.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005048/0.5916, allocations: 2.902 MB / 392.6 MB, free: 18.24 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/0.5932, allocations: 0.7011 MB / 393.3 MB, free: 18.2 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007234/0.5939, allocations: 364.2 kB / 393.7 MB, free: 18.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.606e-05/0.594, allocations: 16.09 kB / 393.7 MB, free: 18.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008871/0.5949, allocations: 416.7 kB / 394.1 MB, free: 18.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 3.987e-06/0.5949, allocations: 0 / 394.1 MB, free: 18.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.001633/0.5966, allocations: 0.6754 MB / 394.8 MB, free: 18.03 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.5966, allocations: 74.61 kB / 394.8 MB, free: 17.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004059/0.5971, allocations: 317.5 kB / 395.1 MB, free: 17.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001441/0.5972, allocations: 77.52 kB / 395.2 MB, free: 17.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002192/0.5974, allocations: 378.5 kB / 395.6 MB, free: 17.56 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002345/0.5977, allocations: 254.5 kB / 395.8 MB, free: 17.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.708e-05/0.5978, allocations: 29.94 kB / 395.9 MB, free: 17.42 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.5979, allocations: 364.2 kB / 396.2 MB, free: 17.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007723/0.5987, allocations: 304.5 kB / 396.5 MB, free: 17.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009385/0.5996, allocations: 0.5143 MB / 397 MB, free: 16.87 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007884/0.6004, allocations: 315.4 kB / 397.3 MB, free: 16.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.919e-06/0.6005, allocations: 3.906 kB / 397.3 MB, free: 16.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.00205/0.6025, allocations: 0.9235 MB / 398.3 MB, free: 16.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.6026, allocations: 11.75 kB / 398.3 MB, free: 16.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.6026, allocations: 3.938 kB / 398.3 MB, free: 16.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.382e-05/0.6026, allocations: 19.11 kB / 398.3 MB, free: 16.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007219/0.6034, allocations: 119.7 kB / 398.4 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.715e-05/0.6034, allocations: 15.69 kB / 398.4 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006265/0.6041, allocations: 80.97 kB / 398.5 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/0.6042, allocations: 53.3 kB / 398.6 MB, free: 16.68 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 133 ($PRE.compositeStep.transition3.enableFire,$PRE.compositeStep.transition4.enableFire,$PRE.compositeStep.transition5.enableFire,$PRE.compositeStep.transition6.enableFire,$PRE.compositeStep.transition4a.enableFire,$PRE.compositeStep.transition6a.enableFire,$PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition7.enableFire,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition,compositeStep.resume[1].set,compositeStep.suspend[1].reset,compositeStep.transition6a.condition,compositeStep.transition4a.condition,compositeStep.transition6.condition,compositeStep.transition5.condition,compositeStep.transition4.condition,compositeStep.transition3.condition,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.active,$PRE.compositeStep.newActive,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition3.enableFire,compositeStep.transition3.fire,$PRE.compositeStep.transition3.t_start,compositeStep.transition3.t_start,compositeStep.transition4.enableFire,compositeStep.transition4.fire,$PRE.compositeStep.transition4.t_start,compositeStep.transition4.t_start,$PRE.compositeStep.step3.localActive,compositeStep.step3.localActive,$PRE.compositeStep.step3.newActive,compositeStep.step3.newActive,$PRE.compositeStep.step3.oldActive,compositeStep.step3.oldActive,compositeStep.step3.active,$PRE.compositeStep.step4.localActive,compositeStep.step4.localActive,$PRE.compositeStep.step4.newActive,compositeStep.step4.newActive,$PRE.compositeStep.step4.oldActive,compositeStep.step4.oldActive,compositeStep.step4.active,compositeStep.transition5.enableFire,compositeStep.transition5.fire,$PRE.compositeStep.transition5.t_start,compositeStep.transition5.t_start,compositeStep.transition6.enableFire,compositeStep.transition6.fire,$PRE.compositeStep.transition6.t_start,compositeStep.transition6.t_start,compositeStep.transition4a.enableFire,compositeStep.transition4a.fire,$PRE.compositeStep.transition4a.t_start,compositeStep.transition4a.t_start,$PRE.compositeStep.step4a.localActive,compositeStep.step4a.localActive,$PRE.compositeStep.step4a.newActive,compositeStep.step4a.newActive,$PRE.compositeStep.step4a.oldActive,compositeStep.step4a.oldActive,compositeStep.step4a.active,compositeStep.transition6a.enableFire,compositeStep.transition6a.fire,$PRE.compositeStep.transition6a.t_start,compositeStep.transition6a.t_start,$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.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,$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,transition7.enableFire,Parallel1.inPort.occupied,Parallel1.outPort.available,setCondition.y,stateGraphRoot.activeSteps,compositeStep.stateGraphRoot.resume,compositeStep.stateGraphRoot.suspend) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 165 * 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.0003236/0.6045, allocations: 246.1 kB / 398.8 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.6047, allocations: 53.62 kB / 398.9 MB, free: 16.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001813/0.6065, allocations: 0.7719 MB / 399.6 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.6065, allocations: 7.906 kB / 399.6 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.6066, allocations: 0 / 399.6 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.448e-05/0.6066, allocations: 6.656 kB / 399.6 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003899/0.6105, allocations: 1.806 MB / 401.4 MB, free: 16.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.6105, allocations: 4 kB / 401.5 MB, free: 16.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000479/0.611, allocations: 73.05 kB / 401.5 MB, free: 16.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.399e-05/0.6111, allocations: 3.906 kB / 401.5 MB, free: 16.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-05/0.6111, allocations: 21.91 kB / 401.5 MB, free: 16.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.487e-06/0.6112, allocations: 7.844 kB / 401.6 MB, free: 16.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.6112, allocations: 0 / 401.6 MB, free: 16.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001519/0.6127, allocations: 0.8022 MB / 402.4 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.921e-05/0.6128, allocations: 128 kB / 402.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.613, allocations: 26.22 kB / 402.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004231/0.6134, allocations: 41.39 kB / 402.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003572/0.6138, allocations: 131.1 kB / 402.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.712e-05/0.6139, allocations: 34.2 kB / 402.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001872/0.6141, allocations: 166.2 kB / 402.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6141, allocations: 4 kB / 402.9 MB, free: 15.61 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009231/0.615, allocations: 171.8 kB / 403 MB, free: 15.61 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: 80 (compositeStep.transition4a.enableFire,compositeStep.transition4.enableFire,step6.localActive,transition2.enableFire,transition1.enableFire,step1.localActive,step0.localActive,compositeStep.exitStep.localActive,compositeStep.transition5.enableFire,compositeStep.transition6.enableFire,compositeStep.transition6a.enableFire,compositeStep.initStep.localActive,compositeStep.transition3.enableFire,compositeStep.step4a.localActive,compositeStep.step4.localActive,compositeStep.step3.localActive,$cse1,$cse2,$cse3,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.active,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition3.fire,compositeStep.transition3.t_start,compositeStep.transition4.fire,compositeStep.transition4.t_start,compositeStep.step3.newActive,compositeStep.step3.oldActive,compositeStep.step3.active,compositeStep.step4.newActive,compositeStep.step4.oldActive,compositeStep.step4.active,compositeStep.transition5.fire,compositeStep.transition5.t_start,compositeStep.transition6.fire,compositeStep.transition6.t_start,compositeStep.transition4a.fire,compositeStep.transition4a.t_start,compositeStep.step4a.newActive,compositeStep.step4a.oldActive,compositeStep.step4a.active,compositeStep.transition6a.fire,compositeStep.transition6a.t_start,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.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,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,transition7.enableFire,Parallel1.inPort.occupied,Parallel1.outPort.available,setCondition.y,stateGraphRoot.activeSteps) * Number of discrete states: 9 (compositeStep.step3.newActive,compositeStep.step4.newActive,compositeStep.step4a.newActive,compositeStep.initStep.newActive,compositeStep.exitStep.newActive,compositeStep.newActive,step0.newActive,step1.newActive,step6.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 91 * 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.001907/0.6169, allocations: 1.419 MB / 404.5 MB, free: 14.87 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001857/0.6188, allocations: 0.8005 MB / 405.3 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.6189, allocations: 0 / 405.3 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008096/0.6197, allocations: 388 kB / 405.6 MB, free: 14.79 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006373/0.6203, allocations: 79.39 kB / 405.7 MB, free: 14.78 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003608/0.6239, allocations: 1.212 MB / 406.9 MB, free: 14.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009312/0.6249, allocations: 0.9614 MB / 407.9 MB, free: 29.72 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007157/0.6257, allocations: 287.6 kB / 408.2 MB, free: 29.71 MB / 330.7 MB Notification: Performance of SimCode: time 1.382e-06/0.6257, allocations: 0 / 408.2 MB, free: 29.71 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.922/3.547, allocations: 12.61 MB / 420.8 MB, free: 24.54 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.ShowCompositeStep_res.mat does not exist to compare? outputFormat=mat