Running command: "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaByExample): time 2.003/2.003, allocations: 203.4 MB / 215.5 MB, free: 13.01 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 4.413e-05/4.423e-05, allocations: 2.391 kB / 264.7 MB, free: 10.47 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1162, allocations: 46.2 MB / 310.9 MB, free: 12.2 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4387/0.5549, allocations: 74.6 MB / 385.5 MB, free: 12.6 MB / 314.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001576/0.5551, allocations: 48.83 kB / 385.6 MB, free: 12.6 MB / 314.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.01667/0.5718, allocations: 3.957 MB / 389.5 MB, free: 12.03 MB / 314.8 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5719, allocations: 0 / 389.5 MB, free: 12.03 MB / 314.8 MB Notification: Performance of Transformations before backend: time 1.746e-05/0.5719, allocations: 7.875 kB / 389.6 MB, free: 12.02 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.001106/0.573, allocations: 0.5288 MB / 390.1 MB, free: 11.59 MB / 314.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.5731, allocations: 7.438 kB / 390.1 MB, free: 11.59 MB / 314.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.239e-05/0.5732, allocations: 53.64 kB / 390.1 MB, free: 11.55 MB / 314.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.023e-05/0.5732, allocations: 25.55 kB / 390.2 MB, free: 11.54 MB / 314.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.5736, allocations: 241.5 kB / 390.4 MB, free: 11.32 MB / 314.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.674e-05/0.5736, allocations: 15.31 kB / 390.4 MB, free: 11.32 MB / 314.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.325e-05/0.5737, allocations: 26.5 kB / 390.4 MB, free: 11.31 MB / 314.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004421/0.5741, allocations: 184.3 kB / 390.6 MB, free: 11.27 MB / 314.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.338e-05/0.5742, allocations: 3.781 kB / 390.6 MB, free: 11.27 MB / 314.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.099e-05/0.5742, allocations: 7.062 kB / 390.6 MB, free: 11.27 MB / 314.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.5742, allocations: 7.812 kB / 390.6 MB, free: 11.27 MB / 314.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003508/0.5746, allocations: 134.3 kB / 390.8 MB, free: 11.27 MB / 314.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.5763, allocations: 0.756 MB / 391.5 MB, free: 10.89 MB / 314.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000566/0.5768, allocations: 192.8 kB / 391.7 MB, free: 10.86 MB / 314.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00021/0.5771, allocations: 86.64 kB / 391.8 MB, free: 10.85 MB / 314.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.5771, allocations: 5.938 kB / 391.8 MB, free: 10.85 MB / 314.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003205/0.5774, allocations: 134.6 kB / 391.9 MB, free: 10.79 MB / 314.8 MB Notification: Performance of pre-optimization done (n=25): time 3.487e-06/0.5775, allocations: 0 / 391.9 MB, free: 10.79 MB / 314.8 MB Notification: Performance of matching and sorting (n=29): time 0.001857/0.5793, allocations: 0.8871 MB / 392.8 MB, free: 10.29 MB / 314.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.5794, allocations: 54.78 kB / 392.9 MB, free: 10.23 MB / 314.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001998/0.5796, allocations: 159.6 kB / 393 MB, free: 10.13 MB / 314.8 MB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.5797, allocations: 34.95 kB / 393.1 MB, free: 10.09 MB / 314.8 MB Notification: Performance of collectInitialEqns (initialization): time 8.792e-05/0.5798, allocations: 136.8 kB / 393.2 MB, free: 9.992 MB / 314.8 MB Notification: Performance of collectInitialBindings (initialization): time 8.506e-05/0.5799, allocations: 102.8 kB / 393.3 MB, free: 9.926 MB / 314.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.879e-05/0.5799, allocations: 10.09 kB / 393.3 MB, free: 9.922 MB / 314.8 MB Notification: Performance of setup shared object (initialization): time 7.035e-05/0.58, allocations: 331.7 kB / 393.6 MB, free: 9.609 MB / 314.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/0.5802, allocations: 59.38 kB / 393.7 MB, free: 9.609 MB / 314.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.5804, allocations: 88.84 kB / 393.8 MB, free: 9.594 MB / 314.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002231/0.5806, allocations: 100.4 kB / 393.9 MB, free: 9.559 MB / 314.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.5806, allocations: 0 / 393.9 MB, free: 9.559 MB / 314.8 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005946/0.5812, allocations: 275.8 kB / 394.1 MB, free: 9.473 MB / 314.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.842e-05/0.5813, allocations: 36.48 kB / 394.2 MB, free: 9.438 MB / 314.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.5813, allocations: 0 / 394.2 MB, free: 9.438 MB / 314.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.5813, allocations: 3.312 kB / 394.2 MB, free: 9.438 MB / 314.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005742/0.5819, allocations: 79.22 kB / 394.3 MB, free: 9.434 MB / 314.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.582, allocations: 1.469 kB / 394.3 MB, free: 9.434 MB / 314.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004154/0.5824, allocations: 36.59 kB / 394.3 MB, free: 9.426 MB / 314.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.153e-05/0.5824, allocations: 9.531 kB / 394.3 MB, free: 9.426 MB / 314.8 MB Warning: Assuming fixed start value for the following 4 variables: damper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" 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: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$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 (35): * Single equations (assignments): 34 * 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.0002018/0.5826, allocations: 144.7 kB / 394.5 MB, free: 9.301 MB / 314.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.835e-05/0.5827, allocations: 26.08 kB / 394.5 MB, free: 9.285 MB / 314.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.273e-05/0.5828, allocations: 36.36 kB / 394.5 MB, free: 9.277 MB / 314.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.5828, allocations: 3.438 kB / 394.5 MB, free: 9.277 MB / 314.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.5828, allocations: 3.984 kB / 394.5 MB, free: 9.273 MB / 314.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.5828, allocations: 0 / 394.5 MB, free: 9.273 MB / 314.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.584, allocations: 0.6521 MB / 395.2 MB, free: 8.938 MB / 314.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.584, allocations: 0 / 395.2 MB, free: 8.938 MB / 314.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006182/0.5846, allocations: 76.77 kB / 395.2 MB, free: 8.934 MB / 314.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.734e-06/0.5846, allocations: 0 / 395.2 MB, free: 8.934 MB / 314.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.836e-05/0.5847, allocations: 10.06 kB / 395.3 MB, free: 8.934 MB / 314.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.5847, allocations: 0 / 395.3 MB, free: 8.934 MB / 314.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5847, allocations: 0 / 395.3 MB, free: 8.934 MB / 314.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007153/0.5854, allocations: 444.9 kB / 395.7 MB, free: 8.734 MB / 314.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.586e-05/0.5855, allocations: 92.64 kB / 395.8 MB, free: 8.629 MB / 314.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.159e-05/0.5856, allocations: 7.344 kB / 395.8 MB, free: 8.629 MB / 314.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004001/0.586, allocations: 31.67 kB / 395.8 MB, free: 8.625 MB / 314.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.713e-05/0.5861, allocations: 32.38 kB / 395.9 MB, free: 8.617 MB / 314.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/0.5861, allocations: 11.31 kB / 395.9 MB, free: 8.617 MB / 314.8 MB Notification: Performance of sorting global known variables: time 0.0001313/0.5863, allocations: 136.4 kB / 396 MB, free: 8.535 MB / 314.8 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5863, allocations: 0 / 396 MB, free: 8.535 MB / 314.8 MB Notification: Performance of remove unused functions: time 0.0004539/0.5867, allocations: 61.44 kB / 396.1 MB, free: 8.535 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: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001458/0.5882, allocations: 1.126 MB / 397.2 MB, free: 23.67 MB / 330.8 MB Notification: Performance of simCode: created initialization part: time 0.0005836/0.5888, allocations: 234.5 kB / 397.4 MB, free: 23.6 MB / 330.8 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.5889, allocations: 4.062 kB / 397.4 MB, free: 23.6 MB / 330.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002534/0.5891, allocations: 100.7 kB / 397.5 MB, free: 23.59 MB / 330.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005512/0.5897, allocations: 41.67 kB / 397.6 MB, free: 23.59 MB / 330.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001914/0.5916, allocations: 0.6581 MB / 398.2 MB, free: 23.2 MB / 330.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003547/0.592, allocations: 0.7568 MB / 399 MB, free: 22.5 MB / 330.8 MB Notification: Performance of simCode: alias equations: time 0.0001667/0.5922, allocations: 23.86 kB / 399 MB, free: 22.5 MB / 330.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/0.5924, allocations: 75.89 kB / 399.1 MB, free: 22.49 MB / 330.8 MB Notification: Performance of SimCode: time 1.233e-06/0.5924, allocations: 0 / 399.1 MB, free: 22.49 MB / 330.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02847/0.6209, allocations: 4.601 MB / 403.7 MB, free: 21.8 MB / 330.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002588/0.6212, allocations: 179.3 kB / 403.8 MB, free: 21.58 MB / 330.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.476/3.098, allocations: 0 / 403.8 MB, free: 21.58 MB / 330.8 MB