Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.78/1.78, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.328e-05/3.32e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2572, allocations: 38.77 MB / 258.3 MB, free: 12.07 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.127/0.3843, allocations: 72.48 MB / 330.8 MB, free: 5.359 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.3846, allocations: 63.97 kB / 330.9 MB, free: 5.297 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3581/0.7427, allocations: 43.28 MB / 374.2 MB, free: 89.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.7428, allocations: 0 / 374.2 MB, free: 89.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.282e-05/0.7428, allocations: 8.688 kB / 374.2 MB, free: 89.84 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001058/0.7439, allocations: 0.957 MB / 375.1 MB, free: 89.13 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.744, allocations: 9.531 kB / 375.1 MB, free: 89.13 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002016/0.7442, allocations: 79.25 kB / 375.2 MB, free: 89.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006682/0.7449, allocations: 369.8 kB / 375.6 MB, free: 88.83 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.246e-05/0.7449, allocations: 11.16 kB / 375.6 MB, free: 88.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.869e-05/0.745, allocations: 15.84 kB / 375.6 MB, free: 88.83 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003774/0.7454, allocations: 136.3 kB / 375.7 MB, free: 88.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006038/0.746, allocations: 280.8 kB / 376 MB, free: 88.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.7461, allocations: 3.875 kB / 376 MB, free: 88.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.699e-05/0.7461, allocations: 4.781 kB / 376 MB, free: 88.79 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.7462, allocations: 7.625 kB / 376 MB, free: 88.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001734/0.7479, allocations: 0.719 MB / 376.7 MB, free: 88.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004108/0.7484, allocations: 204.9 kB / 376.9 MB, free: 88.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003327/0.7487, allocations: 175.2 kB / 377.1 MB, free: 88.47 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.7487, allocations: 0 / 377.1 MB, free: 88.47 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006161/0.7494, allocations: 424.5 kB / 377.5 MB, free: 88.29 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 4.067e-06/0.7494, allocations: 0 / 377.5 MB, free: 88.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001559/0.751, allocations: 0.6221 MB / 378.1 MB, free: 88.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.7511, allocations: 283.2 kB / 378.4 MB, free: 87.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001504/0.7526, allocations: 0.7924 MB / 379.2 MB, free: 87.62 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001686/0.7528, allocations: 36.3 kB / 379.2 MB, free: 87.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.342e-05/0.7529, allocations: 185 kB / 379.4 MB, free: 87.44 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.7531, allocations: 60.75 kB / 379.5 MB, free: 87.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.577e-05/0.7531, allocations: 11.44 kB / 379.5 MB, free: 87.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.426e-05/0.7532, allocations: 319.5 kB / 379.8 MB, free: 87.1 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003098/0.7535, allocations: 129.3 kB / 379.9 MB, free: 87.1 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003583/0.7539, allocations: 158.6 kB / 380.1 MB, free: 87.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002853/0.7542, allocations: 115.4 kB / 380.2 MB, free: 87.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.7542, allocations: 0 / 380.2 MB, free: 87.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001322/0.7556, allocations: 0.5647 MB / 380.8 MB, free: 87.03 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001422/0.7557, allocations: 246.8 kB / 381 MB, free: 86.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.7558, allocations: 3.938 kB / 381 MB, free: 86.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.7558, allocations: 3.062 kB / 381 MB, free: 86.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.104e-05/0.7558, allocations: 3.719 kB / 381 MB, free: 86.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.7559, allocations: 19.09 kB / 381 MB, free: 86.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005073/0.7564, allocations: 29 kB / 381.1 MB, free: 86.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003172/0.7567, allocations: 264.2 kB / 381.3 MB, free: 86.74 MB / 314.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.0003559/0.7571, allocations: 389.6 kB / 381.7 MB, free: 86.37 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001565/0.7587, allocations: 0.6483 MB / 382.4 MB, free: 86.3 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.7588, allocations: 74.91 kB / 382.4 MB, free: 86.27 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004123/0.7593, allocations: 127.2 kB / 382.5 MB, free: 86.2 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.7593, allocations: 7.953 kB / 382.6 MB, free: 86.2 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.7593, allocations: 0 / 382.6 MB, free: 86.2 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.7593, allocations: 0 / 382.6 MB, free: 86.2 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002228/0.7615, allocations: 1.196 MB / 383.8 MB, free: 85.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.7616, allocations: 3.562 kB / 383.8 MB, free: 85.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.848e-05/0.7616, allocations: 3.312 kB / 383.8 MB, free: 85.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/0.7616, allocations: 0 / 383.8 MB, free: 85.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.744e-05/0.7618, allocations: 50.47 kB / 383.8 MB, free: 85.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.317e-06/0.7618, allocations: 4 kB / 383.8 MB, free: 85.69 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/0.7618, allocations: 0 / 383.8 MB, free: 85.69 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001595/0.7634, allocations: 0.7618 MB / 384.6 MB, free: 85.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.7645, allocations: 424 kB / 385 MB, free: 85.14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/0.7647, allocations: 21.91 kB / 385 MB, free: 85.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004542/0.7652, allocations: 35.8 kB / 385 MB, free: 85.13 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002705/0.7655, allocations: 72 kB / 385.1 MB, free: 85.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003177/0.7658, allocations: 276.4 kB / 385.4 MB, free: 85.08 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001275/0.7671, allocations: 0.6468 MB / 386 MB, free: 84.74 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.7671, allocations: 0 / 386 MB, free: 84.74 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007867/0.7679, allocations: 88.75 kB / 386.1 MB, free: 84.74 MB / 314.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.001983/0.7699, allocations: 1.334 MB / 387.5 MB, free: 83.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.7711, allocations: 0.8824 MB / 388.3 MB, free: 83.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.7712, allocations: 0 / 388.3 MB, free: 83.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007318/0.7719, allocations: 0.7435 MB / 389.1 MB, free: 82.57 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00162/0.7735, allocations: 235 kB / 389.3 MB, free: 82.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003397/0.777, allocations: 1.253 MB / 390.6 MB, free: 81.9 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007068/0.7777, allocations: 0.9514 MB / 391.5 MB, free: 81.11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000262/0.778, allocations: 99.2 kB / 391.6 MB, free: 81.02 MB / 314.7 MB Notification: Performance of SimCode: time 9.32e-07/0.778, allocations: 3.938 kB / 391.6 MB, free: 81.02 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.901/3.679, allocations: 8.913 MB / 400.5 MB, free: 73.04 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat