Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.VectorDelay,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_VectorDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.995/1.995, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.509e-05/3.513e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3645/0.3646, allocations: 44.49 MB / 294.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1385/0.5031, allocations: 75.85 MB / 370 MB, free: 6.043 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/0.5034, allocations: 71.95 kB / 370.1 MB, free: 5.973 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04438/0.5478, allocations: 13.25 MB / 383.4 MB, free: 8.703 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5479, allocations: 0 / 383.4 MB, free: 8.703 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.66e-05/0.5479, allocations: 12 kB / 383.4 MB, free: 8.691 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001363/0.5493, allocations: 1.022 MB / 384.4 MB, free: 7.586 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.5493, allocations: 12.02 kB / 384.4 MB, free: 7.574 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001833/0.5495, allocations: 98.78 kB / 384.5 MB, free: 7.477 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007309/0.5503, allocations: 408.9 kB / 384.9 MB, free: 7.023 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.712e-05/0.5503, allocations: 16 kB / 384.9 MB, free: 7.008 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.864e-05/0.5504, allocations: 12 kB / 384.9 MB, free: 6.996 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004696/0.5509, allocations: 179.9 kB / 385.1 MB, free: 6.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007142/0.5516, allocations: 327.9 kB / 385.4 MB, free: 6.484 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.5517, allocations: 0 / 385.4 MB, free: 6.484 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.263e-05/0.5517, allocations: 11.94 kB / 385.4 MB, free: 6.473 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.5518, allocations: 11.92 kB / 385.5 MB, free: 6.461 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.5535, allocations: 0.9315 MB / 386.4 MB, free: 5.484 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005671/0.5541, allocations: 283.7 kB / 386.7 MB, free: 5.18 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005012/0.5546, allocations: 254.5 kB / 386.9 MB, free: 4.922 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.5547, allocations: 4 kB / 386.9 MB, free: 4.918 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009622/0.5556, allocations: 0.6051 MB / 387.5 MB, free: 4.254 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 2.265e-06/0.5556, allocations: 0 / 387.5 MB, free: 4.254 MB / 330.7 MB Notification: Performance of matching and sorting (n=30): time 0.001785/0.5574, allocations: 0.6762 MB / 388.2 MB, free: 3.57 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001621/0.5576, allocations: 277 kB / 388.5 MB, free: 3.238 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002543/0.5602, allocations: 1.227 MB / 389.7 MB, free: 1.992 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.528e-05/0.5603, allocations: 45.69 kB / 389.7 MB, free: 1.941 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.5604, allocations: 172.9 kB / 389.9 MB, free: 1.77 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.5605, allocations: 79.14 kB / 390 MB, free: 1.691 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-05/0.5606, allocations: 4 kB / 390 MB, free: 1.688 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.5607, allocations: 322.8 kB / 390.3 MB, free: 1.363 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000454/0.5612, allocations: 191.9 kB / 390.5 MB, free: 1.176 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004785/0.5617, allocations: 218.5 kB / 390.7 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003615/0.5621, allocations: 159.7 kB / 390.9 MB, free: 0.7969 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.5621, allocations: 0 / 390.9 MB, free: 0.7969 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001576/0.5637, allocations: 0.6066 MB / 391.5 MB, free: 188 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001921/0.5639, allocations: 186.2 kB / 391.6 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.5639, allocations: 4 kB / 391.7 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/0.564, allocations: 3.984 kB / 391.7 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.221e-05/0.564, allocations: 4 kB / 391.7 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.564, allocations: 192 / 391.7 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005818/0.5646, allocations: 47.75 kB / 391.7 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/0.5648, allocations: 87.88 kB / 391.8 MB, free: 15.82 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition5,$whenCondition6,$PRE.delay.inertialDelaySensitive[3].x,delay.inertialDelaySensitive[3].x,$PRE.delay.inertialDelaySensitive[3].y,delay.inertialDelaySensitive[3].y,delay.inertialDelaySensitive[3].delayTime,delay.inertialDelaySensitive[3].y_auxiliary,delay.inertialDelaySensitive[3].y_old,delay.inertialDelaySensitive[3].lh,delay.inertialDelaySensitive[3].t_next,table2.y,$whenCondition3,$whenCondition4,$PRE.delay.inertialDelaySensitive[2].x,delay.inertialDelaySensitive[2].x,$PRE.delay.inertialDelaySensitive[2].y,delay.inertialDelaySensitive[2].y,delay.inertialDelaySensitive[2].delayTime,delay.inertialDelaySensitive[2].y_auxiliary,delay.inertialDelaySensitive[2].y_old,delay.inertialDelaySensitive[2].lh,delay.inertialDelaySensitive[2].t_next,table1.y,$whenCondition1,$whenCondition2,$PRE.delay.inertialDelaySensitive[1].x,delay.inertialDelaySensitive[1].x,$PRE.delay.inertialDelaySensitive[1].y,delay.inertialDelaySensitive[1].y,delay.inertialDelaySensitive[1].delayTime,delay.inertialDelaySensitive[1].y_auxiliary,delay.inertialDelaySensitive[1].y_old,delay.inertialDelaySensitive[1].lh,delay.inertialDelaySensitive[1].t_next,table.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 6 * 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.0004212/0.5652, allocations: 352.3 kB / 392.1 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001933/0.5672, allocations: 0.7579 MB / 392.9 MB, free: 14.67 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.5674, allocations: 106.8 kB / 393 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006089/0.568, allocations: 200 kB / 393.2 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.568, allocations: 0 / 393.2 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.568, allocations: 0 / 393.2 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.568, allocations: 4 kB / 393.2 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003133/0.5712, allocations: 1.564 MB / 394.8 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.5712, allocations: 3.938 kB / 394.8 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.882e-05/0.5712, allocations: 4 kB / 394.8 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.415e-06/0.5713, allocations: 7.938 kB / 394.8 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.108e-05/0.5713, allocations: 27.98 kB / 394.8 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.808e-06/0.5714, allocations: 0 / 394.8 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.5714, allocations: 0 / 394.8 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002025/0.5734, allocations: 1.036 MB / 395.8 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001634/0.5751, allocations: 0.593 MB / 396.4 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002527/0.5753, allocations: 51.97 kB / 396.5 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006451/0.576, allocations: 35.88 kB / 396.5 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003137/0.5763, allocations: 91.81 kB / 396.6 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001666/0.5765, allocations: 99.92 kB / 396.7 MB, free: 10.76 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002236/0.5788, allocations: 1.016 MB / 397.7 MB, free: 9.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5788, allocations: 0 / 397.7 MB, free: 9.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000793/0.5796, allocations: 108 kB / 397.8 MB, free: 9.625 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition1,$whenCondition2,delay.inertialDelaySensitive[1].x,delay.inertialDelaySensitive[1].y,delay.inertialDelaySensitive[1].delayTime,delay.inertialDelaySensitive[1].y_auxiliary,delay.inertialDelaySensitive[1].y_old,delay.inertialDelaySensitive[1].lh,delay.inertialDelaySensitive[1].t_next,table.y,$whenCondition3,$whenCondition4,delay.inertialDelaySensitive[2].x,delay.inertialDelaySensitive[2].y,delay.inertialDelaySensitive[2].delayTime,delay.inertialDelaySensitive[2].y_auxiliary,delay.inertialDelaySensitive[2].y_old,delay.inertialDelaySensitive[2].lh,delay.inertialDelaySensitive[2].t_next,table1.y,$whenCondition5,$whenCondition6,delay.inertialDelaySensitive[3].x,delay.inertialDelaySensitive[3].y,delay.inertialDelaySensitive[3].delayTime,delay.inertialDelaySensitive[3].y_auxiliary,delay.inertialDelaySensitive[3].y_old,delay.inertialDelaySensitive[3].lh,delay.inertialDelaySensitive[3].t_next,table2.y) * Number of discrete states: 30 (table2.y,delay.inertialDelaySensitive[3].y,delay.inertialDelaySensitive[3].y_auxiliary,delay.inertialDelaySensitive[3].t_next,delay.inertialDelaySensitive[3].delayTime,delay.inertialDelaySensitive[3].lh,delay.inertialDelaySensitive[3].y_old,$whenCondition6,$whenCondition5,delay.inertialDelaySensitive[3].x,table1.y,delay.inertialDelaySensitive[2].y,delay.inertialDelaySensitive[2].y_auxiliary,delay.inertialDelaySensitive[2].t_next,delay.inertialDelaySensitive[2].delayTime,delay.inertialDelaySensitive[2].lh,delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,delay.inertialDelaySensitive[2].x,table.y,delay.inertialDelaySensitive[1].y,delay.inertialDelaySensitive[1].y_auxiliary,delay.inertialDelaySensitive[1].t_next,delay.inertialDelaySensitive[1].delayTime,delay.inertialDelaySensitive[1].lh,delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 6 * 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 Backend phase and start with SimCode phase: time 0.002615/0.5822, allocations: 1.788 MB / 399.6 MB, free: 7.801 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.5838, allocations: 0.9532 MB / 400.6 MB, free: 6.773 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5839, allocations: 0 / 400.6 MB, free: 6.773 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/0.5849, allocations: 0.7815 MB / 401.3 MB, free: 5.918 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/0.5865, allocations: 211.7 kB / 401.6 MB, free: 5.707 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005348/0.5919, allocations: 2.046 MB / 403.6 MB, free: 3.605 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001292/0.5932, allocations: 1.102 MB / 404.7 MB, free: 2.477 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.5934, allocations: 55.42 kB / 404.8 MB, free: 2.422 MB / 346.7 MB Notification: Performance of SimCode: time 1.122e-06/0.5934, allocations: 4.188 kB / 404.8 MB, free: 2.418 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.472/3.066, allocations: 6.143 MB / 410.9 MB, free: 12.27 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.VectorDelay_res.mat does not exist to compare? outputFormat=mat