Running command: translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") Notification: Performance of loadModel(ModelicaByExample): time 1.911/1.911, allocations: 203.4 MB / 215.6 MB, free: 12.97 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.788e-05/2.799e-05, allocations: 4 kB / 264.6 MB, free: 10.52 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07968/0.07974, allocations: 46.2 MB / 310.8 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3326/0.4124, allocations: 74.61 MB / 385.4 MB, free: 12.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001177/0.4125, allocations: 51.05 kB / 385.5 MB, free: 12.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01464/0.4272, allocations: 3.953 MB / 389.5 MB, free: 12.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.995e-06/0.4272, allocations: 3.938 kB / 389.5 MB, free: 12.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.59e-05/0.4273, allocations: 3.875 kB / 389.5 MB, free: 12.23 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007997/0.4281, allocations: 0.5194 MB / 390 MB, free: 11.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.4281, allocations: 9.062 kB / 390 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.175e-05/0.4282, allocations: 24.84 kB / 390 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/0.4285, allocations: 239.5 kB / 390.2 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.4285, allocations: 19.95 kB / 390.3 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.092e-05/0.4286, allocations: 28.88 kB / 390.3 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003904/0.429, allocations: 186.9 kB / 390.5 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/0.429, allocations: 2.344 kB / 390.5 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.832e-05/0.4291, allocations: 9.375 kB / 390.5 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.4291, allocations: 5.188 kB / 390.5 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000332/0.4294, allocations: 130 kB / 390.6 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.4308, allocations: 0.7683 MB / 391.4 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008207/0.4317, allocations: 181.2 kB / 391.6 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004014/0.4321, allocations: 90.2 kB / 391.7 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.4321, allocations: 3.781 kB / 391.7 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002623/0.4324, allocations: 131.9 kB / 391.8 MB, free: 11.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 3.015e-06/0.4324, allocations: 0 / 391.8 MB, free: 11.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001536/0.434, allocations: 0.8878 MB / 392.7 MB, free: 10.54 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.826e-05/0.434, allocations: 57.98 kB / 392.7 MB, free: 10.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.4342, allocations: 159.1 kB / 392.9 MB, free: 10.38 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.4342, allocations: 31.17 kB / 392.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.845e-05/0.4343, allocations: 134.4 kB / 393 MB, free: 10.24 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.185e-05/0.4344, allocations: 105.8 kB / 393.2 MB, free: 10.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.635e-05/0.4344, allocations: 5.031 kB / 393.2 MB, free: 10.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.485e-05/0.4345, allocations: 336.8 kB / 393.5 MB, free: 9.859 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.4347, allocations: 63.16 kB / 393.5 MB, free: 9.859 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.4349, allocations: 83.33 kB / 393.6 MB, free: 9.844 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001938/0.4351, allocations: 102.9 kB / 393.7 MB, free: 9.805 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.179e-06/0.4351, allocations: 0 / 393.7 MB, free: 9.805 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005216/0.4356, allocations: 276.4 kB / 394 MB, free: 9.723 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.251e-05/0.4357, allocations: 36.34 kB / 394 MB, free: 9.688 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.028e-06/0.4357, allocations: 0 / 394 MB, free: 9.688 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.4357, allocations: 3.062 kB / 394 MB, free: 9.688 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004042/0.4361, allocations: 83.05 kB / 394.1 MB, free: 9.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.896e-06/0.4362, allocations: 1.625 kB / 394.1 MB, free: 9.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002616/0.4364, allocations: 33.44 kB / 394.2 MB, free: 9.676 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.202e-05/0.4365, allocations: 12.27 kB / 394.2 MB, free: 9.676 MB / 314.7 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.0001567/0.4367, allocations: 141.5 kB / 394.3 MB, free: 9.551 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.283e-05/0.4367, allocations: 22.64 kB / 394.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.075e-05/0.4368, allocations: 32.23 kB / 394.4 MB, free: 9.531 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.4368, allocations: 3.438 kB / 394.4 MB, free: 9.531 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.317e-06/0.4368, allocations: 5.625 kB / 394.4 MB, free: 9.527 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.163e-06/0.4368, allocations: 3.047 kB / 394.4 MB, free: 9.527 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009833/0.4378, allocations: 0.6493 MB / 395 MB, free: 9.199 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.09e-06/0.4379, allocations: 3.938 kB / 395 MB, free: 9.195 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004116/0.4383, allocations: 74.19 kB / 395.1 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.931e-06/0.4383, allocations: 3.875 kB / 395.1 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.4383, allocations: 3.75 kB / 395.1 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.031e-06/0.4383, allocations: 3.875 kB / 395.1 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.47e-06/0.4384, allocations: 0 / 395.1 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006282/0.439, allocations: 448.6 kB / 395.5 MB, free: 8.984 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.959e-05/0.4391, allocations: 96.14 kB / 395.6 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.981e-05/0.4392, allocations: 9.578 kB / 395.6 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003219/0.4395, allocations: 27.67 kB / 395.7 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.4396, allocations: 31.77 kB / 395.7 MB, free: 8.875 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.4397, allocations: 11.69 kB / 395.7 MB, free: 8.871 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000103/0.4398, allocations: 137.7 kB / 395.8 MB, free: 8.789 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.57e-07/0.4398, allocations: 0 / 395.8 MB, free: 8.789 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004141/0.4402, allocations: 61.25 kB / 395.9 MB, free: 8.789 MB / 314.7 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.0001198/0.4404, allocations: 114.1 kB / 396 MB, free: 8.695 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004179/0.4408, allocations: 236.6 kB / 396.3 MB, free: 8.625 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.827e-06/0.4408, allocations: 0 / 396.3 MB, free: 8.625 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002209/0.4411, allocations: 105.3 kB / 396.4 MB, free: 8.617 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004006/0.4415, allocations: 39.73 kB / 396.4 MB, free: 8.613 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.4428, allocations: 0.596 MB / 397 MB, free: 8.266 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006224/0.4434, allocations: 0.7502 MB / 397.7 MB, free: 23.57 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.4436, allocations: 27.52 kB / 397.8 MB, free: 23.56 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.011e-05/0.4436, allocations: 22.56 kB / 397.8 MB, free: 23.55 MB / 330.7 MB Notification: Performance of SimCode: time 1.525e-06/0.4437, allocations: 0 / 397.8 MB, free: 23.55 MB / 330.7 MB Notification: Performance of Templates: time 0.007617/0.4513, allocations: 2.465 MB / 400.3 MB, free: 23.36 MB / 330.7 MB