Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.906/1.906, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.784e-05/3.809e-05, allocations: 8 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1084, allocations: 50.41 MB / 342.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4353/0.5438, allocations: 83.89 MB / 426.5 MB, free: 10.24 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.5441, allocations: 64.47 kB / 426.6 MB, free: 10.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1578/0.7019, allocations: 43.72 MB / 470.3 MB, free: 3.512 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.867e-06/0.7019, allocations: 4 kB / 470.3 MB, free: 3.508 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.614e-05/0.7019, allocations: 16 kB / 470.3 MB, free: 3.492 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001186/0.7031, allocations: 0.9357 MB / 471.3 MB, free: 2.457 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.7032, allocations: 8.031 kB / 471.3 MB, free: 2.449 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.7033, allocations: 58.55 kB / 471.3 MB, free: 2.383 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000174/0.7035, allocations: 75.06 kB / 471.4 MB, free: 2.309 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006556/0.7042, allocations: 371.9 kB / 471.8 MB, free: 1.902 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.006e-05/0.7043, allocations: 12.19 kB / 471.8 MB, free: 1.891 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.7044, allocations: 20 kB / 471.8 MB, free: 1.871 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007785/0.7052, allocations: 291.8 kB / 472.1 MB, free: 1.578 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.7052, allocations: 4 kB / 472.1 MB, free: 1.574 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.869e-05/0.7053, allocations: 11.94 kB / 472.1 MB, free: 1.562 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.7053, allocations: 4 kB / 472.1 MB, free: 1.559 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004638/0.7058, allocations: 148.4 kB / 472.2 MB, free: 1.414 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.7076, allocations: 0.7628 MB / 473 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005533/0.7081, allocations: 210.5 kB / 473.2 MB, free: 396 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004756/0.7086, allocations: 192.8 kB / 473.4 MB, free: 200 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.7087, allocations: 3.938 kB / 473.4 MB, free: 196 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008166/0.7095, allocations: 434.4 kB / 473.8 MB, free: 15.73 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 5.5e-06/0.7095, allocations: 0 / 473.8 MB, free: 15.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.002042/0.7116, allocations: 0.8618 MB / 474.7 MB, free: 14.81 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001797/0.7118, allocations: 289 kB / 475 MB, free: 14.47 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/0.7136, allocations: 0.8313 MB / 475.8 MB, free: 13.63 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000116/0.7138, allocations: 33.7 kB / 475.8 MB, free: 13.59 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.7139, allocations: 184.4 kB / 476 MB, free: 13.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.7141, allocations: 67.25 kB / 476.1 MB, free: 13.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.219e-05/0.7142, allocations: 11.98 kB / 476.1 MB, free: 13.33 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.7143, allocations: 314.8 kB / 476.4 MB, free: 13.02 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004393/0.7148, allocations: 144.2 kB / 476.5 MB, free: 12.88 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004571/0.7152, allocations: 170.2 kB / 476.7 MB, free: 12.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005571/0.7158, allocations: 365.5 kB / 477.1 MB, free: 12.3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.7158, allocations: 0 / 477.1 MB, free: 12.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001821/0.7177, allocations: 0.8074 MB / 477.9 MB, free: 11.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001822/0.7179, allocations: 237.6 kB / 478.1 MB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.7179, allocations: 3.953 kB / 478.1 MB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.7179, allocations: 4 kB / 478.1 MB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.268e-05/0.718, allocations: 7.984 kB / 478.1 MB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.718, allocations: 0 / 478.1 MB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004969/0.7185, allocations: 36.02 kB / 478.1 MB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003896/0.7189, allocations: 263.8 kB / 478.4 MB, free: 10.84 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * 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.0004337/0.7193, allocations: 394.4 kB / 478.8 MB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/0.7195, allocations: 75.16 kB / 478.9 MB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003972/0.7199, allocations: 131 kB / 479 MB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.72, allocations: 7.953 kB / 479 MB, free: 10.19 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.72, allocations: 4 kB / 479 MB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.72, allocations: 0 / 479 MB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002936/0.7229, allocations: 1.483 MB / 480.5 MB, free: 8.594 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.723, allocations: 0 / 480.5 MB, free: 8.594 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.17e-05/0.723, allocations: 11.92 kB / 480.5 MB, free: 8.582 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-06/0.723, allocations: 3.953 kB / 480.5 MB, free: 8.578 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.7232, allocations: 43.97 kB / 480.5 MB, free: 8.535 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.7232, allocations: 4 kB / 480.5 MB, free: 8.531 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.7232, allocations: 4 kB / 480.6 MB, free: 8.527 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/0.7253, allocations: 1.016 MB / 481.6 MB, free: 7.445 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001111/0.7265, allocations: 427.7 kB / 482 MB, free: 7.008 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/0.7267, allocations: 23.95 kB / 482 MB, free: 6.984 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004728/0.7272, allocations: 23.98 kB / 482 MB, free: 6.961 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002893/0.7275, allocations: 75.91 kB / 482.1 MB, free: 6.887 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003972/0.7279, allocations: 275.5 kB / 482.4 MB, free: 6.617 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001516/0.7294, allocations: 0.6899 MB / 483.1 MB, free: 5.934 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.555e-06/0.7294, allocations: 0 / 483.1 MB, free: 5.934 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006502/0.7301, allocations: 95.94 kB / 483.2 MB, free: 5.84 MB / 394.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: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * 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.002592/0.7327, allocations: 1.602 MB / 484.8 MB, free: 4.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001545/0.7343, allocations: 0.9092 MB / 485.7 MB, free: 3.152 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.7343, allocations: 0 / 485.7 MB, free: 3.152 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.7353, allocations: 0.7608 MB / 486.4 MB, free: 2.293 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001593/0.7369, allocations: 227.2 kB / 486.7 MB, free: 2.078 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003509/0.7405, allocations: 1.266 MB / 487.9 MB, free: 0.7695 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000891/0.7414, allocations: 0.9598 MB / 488.9 MB, free: 15.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002687/0.7417, allocations: 95.31 kB / 489 MB, free: 15.69 MB / 410.7 MB Notification: Performance of SimCode: time 1.253e-06/0.7417, allocations: 0 / 489 MB, free: 15.69 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.712/3.453, allocations: 8.937 MB / 497.9 MB, free: 6.656 MB / 410.7 MB