Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.909/1.909, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.952e-05/3.969e-05, allocations: 7.984 kB / 225.1 MB, free: 2.258 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2841, allocations: 38.76 MB / 263.9 MB, free: 9.82 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1243/0.4084, allocations: 65.5 MB / 329.4 MB, free: 8.227 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/0.4088, allocations: 55.98 kB / 329.4 MB, free: 8.172 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01204/0.4208, allocations: 2.786 MB / 332.2 MB, free: 5.359 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.2e-06/0.4209, allocations: 4 kB / 332.2 MB, free: 5.355 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.103e-05/0.4209, allocations: 8 kB / 332.2 MB, free: 5.348 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007497/0.4217, allocations: 439.5 kB / 332.6 MB, free: 4.875 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.4217, allocations: 8.031 kB / 332.7 MB, free: 4.867 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.271e-05/0.4218, allocations: 54.55 kB / 332.7 MB, free: 4.805 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.734e-05/0.4219, allocations: 19.81 kB / 332.7 MB, free: 4.785 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003348/0.4223, allocations: 226.8 kB / 332.9 MB, free: 4.523 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.431e-05/0.4223, allocations: 20.44 kB / 333 MB, free: 4.504 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.646e-05/0.4224, allocations: 24 kB / 333 MB, free: 4.48 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000588/0.423, allocations: 229 kB / 333.2 MB, free: 4.242 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.423, allocations: 0 / 333.2 MB, free: 4.242 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.316e-05/0.4231, allocations: 8 kB / 333.2 MB, free: 4.234 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.982e-05/0.4231, allocations: 8 kB / 333.2 MB, free: 4.227 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004642/0.4236, allocations: 156.8 kB / 333.4 MB, free: 4.074 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.4251, allocations: 0.6822 MB / 334.1 MB, free: 3.336 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004509/0.4256, allocations: 163.1 kB / 334.2 MB, free: 3.168 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002048/0.4258, allocations: 85.3 kB / 334.3 MB, free: 3.082 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.35e-05/0.4259, allocations: 4.188 kB / 334.3 MB, free: 3.078 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002805/0.4262, allocations: 111.5 kB / 334.4 MB, free: 2.957 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 5.731e-06/0.4262, allocations: 4 kB / 334.4 MB, free: 2.953 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004917/0.4267, allocations: 165.4 kB / 334.6 MB, free: 2.785 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.4268, allocations: 59.34 kB / 334.6 MB, free: 2.715 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.4269, allocations: 137 kB / 334.8 MB, free: 2.57 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.86e-05/0.427, allocations: 37.69 kB / 334.8 MB, free: 2.527 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.4271, allocations: 128.4 kB / 334.9 MB, free: 2.398 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.041e-05/0.4272, allocations: 63.19 kB / 335 MB, free: 2.336 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-05/0.4273, allocations: 8 kB / 335 MB, free: 2.328 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.4274, allocations: 330.8 kB / 335.3 MB, free: 1.996 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/0.4276, allocations: 56.66 kB / 335.4 MB, free: 1.938 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.4279, allocations: 127.8 kB / 335.5 MB, free: 1.789 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.4281, allocations: 59.97 kB / 335.6 MB, free: 1.73 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.4281, allocations: 4 kB / 335.6 MB, free: 1.727 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006023/0.4287, allocations: 225.3 kB / 335.8 MB, free: 1.5 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.623e-05/0.4288, allocations: 11.98 kB / 335.8 MB, free: 1.488 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.4288, allocations: 4.219 kB / 335.8 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.4288, allocations: 7.938 kB / 335.8 MB, free: 1.477 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.4291, allocations: 27.92 kB / 335.8 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.485e-05/0.4291, allocations: 4 kB / 335.8 MB, free: 1.445 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.4293, allocations: 15.94 kB / 335.9 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.41e-05/0.4293, allocations: 15.98 kB / 335.9 MB, free: 1.414 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$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,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001485/0.4295, allocations: 136.7 kB / 336 MB, free: 1.273 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.751e-05/0.4295, allocations: 11.81 kB / 336 MB, free: 1.262 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000517/0.4301, allocations: 186.3 kB / 336.2 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.4301, allocations: 7.938 kB / 336.2 MB, free: 1.059 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4301, allocations: 0 / 336.2 MB, free: 1.059 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.4301, allocations: 3.984 kB / 336.2 MB, free: 1.055 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.4313, allocations: 0.5455 MB / 336.8 MB, free: 464 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.4313, allocations: 11.94 kB / 336.8 MB, free: 452 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001565/0.4315, allocations: 19.98 kB / 336.8 MB, free: 432 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.4315, allocations: 0 / 336.8 MB, free: 432 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.12e-05/0.4315, allocations: 4 kB / 336.8 MB, free: 428 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.534e-06/0.4315, allocations: 4 kB / 336.8 MB, free: 424 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.4315, allocations: 7.891 kB / 336.8 MB, free: 416 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004646/0.432, allocations: 283.5 kB / 337.1 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.383e-05/0.4321, allocations: 88.95 kB / 337.2 MB, free: 8 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.284e-05/0.4321, allocations: 4 kB / 337.2 MB, free: 4 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001844/0.4323, allocations: 16.06 kB / 337.2 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.4325, allocations: 23.97 kB / 337.2 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.4325, allocations: 7.953 kB / 337.2 MB, free: 15.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001246/0.4326, allocations: 99.27 kB / 337.3 MB, free: 15.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4326, allocations: 0 / 337.3 MB, free: 15.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004379/0.4331, allocations: 40 kB / 337.4 MB, free: 15.82 MB / 298.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: 19 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0008937/0.434, allocations: 0.8215 MB / 338.2 MB, free: 14.97 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004909/0.4345, allocations: 171.7 kB / 338.4 MB, free: 14.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.4345, allocations: 0 / 338.4 MB, free: 14.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002157/0.4348, allocations: 83.92 kB / 338.4 MB, free: 14.72 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.4351, allocations: 12.44 kB / 338.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009369/0.436, allocations: 284 kB / 338.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/0.4364, allocations: 0.7326 MB / 339.5 MB, free: 13.63 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001618/0.4366, allocations: 26.06 kB / 339.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/0.4368, allocations: 55.42 kB / 339.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of SimCode: time 1.172e-06/0.4368, allocations: 0 / 339.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02523/0.462, allocations: 3.296 MB / 342.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003619/0.4625, allocations: 150.2 kB / 343 MB, free: 10.09 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.382/2.844, allocations: 7.875 kB / 343 MB, free: 10.08 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat