Running command: "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaByExample): time 2.089/2.089, allocations: 203.4 MB / 215.5 MB, free: 13.01 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 4.23e-05/4.236e-05, allocations: 0 / 264.7 MB, free: 10.47 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1524, allocations: 46.19 MB / 310.9 MB, free: 12.2 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4343/0.5868, allocations: 74.59 MB / 385.5 MB, free: 12.57 MB / 314.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001597/0.587, allocations: 48.97 kB / 385.6 MB, free: 12.57 MB / 314.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.01694/0.604, allocations: 4.027 MB / 389.6 MB, free: 11.99 MB / 314.8 MB Notification: Performance of FrontEnd: time 1.593e-06/0.604, allocations: 0 / 389.6 MB, free: 11.99 MB / 314.8 MB Notification: Performance of Transformations before backend: time 1.947e-05/0.6041, allocations: 7.875 kB / 389.6 MB, free: 11.99 MB / 314.8 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.001159/0.6052, allocations: 0.526 MB / 390.1 MB, free: 11.55 MB / 314.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.6053, allocations: 7.625 kB / 390.1 MB, free: 11.55 MB / 314.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.325e-05/0.6054, allocations: 58.25 kB / 390.2 MB, free: 11.52 MB / 314.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.35e-05/0.6055, allocations: 31.34 kB / 390.2 MB, free: 11.5 MB / 314.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002969/0.6058, allocations: 241 kB / 390.5 MB, free: 11.28 MB / 314.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.6058, allocations: 20.06 kB / 390.5 MB, free: 11.27 MB / 314.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.535e-05/0.6059, allocations: 21.81 kB / 390.5 MB, free: 11.27 MB / 314.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004529/0.6063, allocations: 185.7 kB / 390.7 MB, free: 11.24 MB / 314.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/0.6064, allocations: 3.875 kB / 390.7 MB, free: 11.24 MB / 314.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.058e-05/0.6064, allocations: 3.938 kB / 390.7 MB, free: 11.24 MB / 314.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.6064, allocations: 3.781 kB / 390.7 MB, free: 11.24 MB / 314.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003595/0.6068, allocations: 141.1 kB / 390.8 MB, free: 11.23 MB / 314.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.6085, allocations: 0.712 MB / 391.5 MB, free: 10.91 MB / 314.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005291/0.6091, allocations: 181.5 kB / 391.7 MB, free: 10.89 MB / 314.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002209/0.6093, allocations: 96.02 kB / 391.8 MB, free: 10.88 MB / 314.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.742e-05/0.6094, allocations: 1.656 kB / 391.8 MB, free: 10.88 MB / 314.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003474/0.6097, allocations: 148 kB / 392 MB, free: 10.82 MB / 314.8 MB Notification: Performance of pre-optimization done (n=27): time 3.246e-06/0.6098, allocations: 0 / 392 MB, free: 10.82 MB / 314.8 MB Notification: Performance of matching and sorting (n=32): time 0.002144/0.6119, allocations: 0.949 MB / 392.9 MB, free: 10.32 MB / 314.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.612, allocations: 63.88 kB / 393 MB, free: 10.25 MB / 314.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002258/0.6122, allocations: 159.7 kB / 393.1 MB, free: 10.16 MB / 314.8 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.6123, allocations: 32.27 kB / 393.2 MB, free: 10.12 MB / 314.8 MB Notification: Performance of collectInitialEqns (initialization): time 8.695e-05/0.6124, allocations: 139.6 kB / 393.3 MB, free: 10.02 MB / 314.8 MB Notification: Performance of collectInitialBindings (initialization): time 8.997e-05/0.6125, allocations: 106.3 kB / 393.4 MB, free: 9.953 MB / 314.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.025e-05/0.6125, allocations: 5.125 kB / 393.4 MB, free: 9.953 MB / 314.8 MB Notification: Performance of setup shared object (initialization): time 7.17e-05/0.6126, allocations: 333.4 kB / 393.7 MB, free: 9.641 MB / 314.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.6128, allocations: 75.7 kB / 393.8 MB, free: 9.629 MB / 314.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002337/0.613, allocations: 106.5 kB / 393.9 MB, free: 9.602 MB / 314.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002584/0.6133, allocations: 108.9 kB / 394 MB, free: 9.566 MB / 314.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.6133, allocations: 1.5 kB / 394 MB, free: 9.566 MB / 314.8 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006645/0.614, allocations: 299.1 kB / 394.3 MB, free: 9.477 MB / 314.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.197e-05/0.6141, allocations: 33.05 kB / 394.3 MB, free: 9.445 MB / 314.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-06/0.6141, allocations: 0 / 394.3 MB, free: 9.445 MB / 314.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.6141, allocations: 5.969 kB / 394.4 MB, free: 9.441 MB / 314.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006086/0.6147, allocations: 87.03 kB / 394.4 MB, free: 9.43 MB / 314.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.6148, allocations: 6.297 kB / 394.4 MB, free: 9.426 MB / 314.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004659/0.6152, allocations: 34.88 kB / 394.5 MB, free: 9.426 MB / 314.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.371e-05/0.6153, allocations: 11.12 kB / 394.5 MB, free: 9.426 MB / 314.8 MB Warning: Assuming fixed start value for the following 4 variables: speedSensor.w:DISCRETE(fixed = false ) "Sensed speed" type: Real damper.phi_rel:VARIABLE(start = 0.0 unit = "rad" nominal = if damper.phi_nominal >= 1e-15 then damper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real springDamper.phi_rel:VARIABLE(start = 0.0 unit = "rad" nominal = if springDamper.phi_nominal >= 1e-15 then springDamper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.speedSensor.w,speedSensor.w,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * 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.0002547/0.6156, allocations: 146.5 kB / 394.6 MB, free: 9.309 MB / 314.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.835e-05/0.6157, allocations: 19.52 kB / 394.6 MB, free: 9.297 MB / 314.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001078/0.6158, allocations: 28 kB / 394.7 MB, free: 9.293 MB / 314.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.6158, allocations: 3.906 kB / 394.7 MB, free: 9.293 MB / 314.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.779e-06/0.6158, allocations: 4 kB / 394.7 MB, free: 9.289 MB / 314.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.178e-06/0.6158, allocations: 2.953 kB / 394.7 MB, free: 9.289 MB / 314.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00166/0.6175, allocations: 0.73 MB / 395.4 MB, free: 8.918 MB / 314.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.6175, allocations: 64 / 395.4 MB, free: 8.918 MB / 314.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000786/0.6183, allocations: 84.34 kB / 395.5 MB, free: 8.906 MB / 314.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.071e-05/0.6184, allocations: 3.781 kB / 395.5 MB, free: 8.906 MB / 314.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.691e-05/0.6184, allocations: 7.688 kB / 395.5 MB, free: 8.906 MB / 314.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/0.6184, allocations: 2.906 kB / 395.5 MB, free: 8.906 MB / 314.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.6185, allocations: 0 / 395.5 MB, free: 8.906 MB / 314.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.6195, allocations: 480.1 kB / 396 MB, free: 8.703 MB / 314.8 MB Notification: Performance of postOpt removeConstants (simulation): time 8.218e-05/0.6196, allocations: 88.77 kB / 396.1 MB, free: 8.602 MB / 314.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.274e-05/0.6197, allocations: 10.88 kB / 396.1 MB, free: 8.602 MB / 314.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005626/0.6203, allocations: 29 kB / 396.1 MB, free: 8.598 MB / 314.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.6204, allocations: 38.94 kB / 396.1 MB, free: 8.59 MB / 314.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-05/0.6205, allocations: 7.375 kB / 396.2 MB, free: 8.59 MB / 314.8 MB Notification: Performance of sorting global known variables: time 0.0001633/0.6207, allocations: 135.5 kB / 396.3 MB, free: 8.508 MB / 314.8 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6207, allocations: 3.75 kB / 396.3 MB, free: 8.508 MB / 314.8 MB Notification: Performance of remove unused functions: time 0.0007261/0.6214, allocations: 64.69 kB / 396.4 MB, free: 8.508 MB / 314.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (springDamper.phi_rel,springDamper.w_rel,damper.phi_rel,damper.w_rel) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,speedSensor.w,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001834/0.6233, allocations: 1.156 MB / 397.5 MB, free: 23.64 MB / 330.8 MB Notification: Performance of simCode: created initialization part: time 0.0007597/0.6241, allocations: 256.8 kB / 397.8 MB, free: 23.57 MB / 330.8 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.6241, allocations: 0 / 397.8 MB, free: 23.57 MB / 330.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003828/0.6245, allocations: 113 kB / 397.9 MB, free: 23.56 MB / 330.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006862/0.6252, allocations: 44.34 kB / 397.9 MB, free: 23.55 MB / 330.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.6278, allocations: 0.6787 MB / 398.6 MB, free: 23.16 MB / 330.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005398/0.6284, allocations: 0.7582 MB / 399.3 MB, free: 22.45 MB / 330.8 MB Notification: Performance of simCode: alias equations: time 0.0002498/0.6287, allocations: 29.67 kB / 399.4 MB, free: 22.44 MB / 330.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002363/0.6289, allocations: 77.56 kB / 399.5 MB, free: 22.43 MB / 330.8 MB Notification: Performance of SimCode: time 1.273e-06/0.6289, allocations: 0 / 399.5 MB, free: 22.43 MB / 330.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0599/0.6888, allocations: 4.81 MB / 404.3 MB, free: 21.61 MB / 330.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002335/0.6891, allocations: 186.2 kB / 404.4 MB, free: 21.38 MB / 330.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.397/3.087, allocations: 3.875 kB / 404.4 MB, free: 21.38 MB / 330.8 MB