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.662/1.662, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.766e-05/2.777e-05, allocations: 0 / 225.1 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2478, allocations: 38.77 MB / 263.8 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.128/0.3759, allocations: 73.15 MB / 337 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/0.3762, allocations: 71.97 kB / 337 MB, free: 448 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3563/0.7325, allocations: 43.62 MB / 380.7 MB, free: 89.25 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.7325, allocations: 0 / 380.7 MB, free: 89.25 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.075e-05/0.7325, allocations: 11.62 kB / 380.7 MB, free: 89.25 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.0009865/0.7335, allocations: 0.9432 MB / 381.6 MB, free: 88.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.7336, allocations: 10.88 kB / 381.6 MB, free: 88.5 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000104/0.7337, allocations: 52.41 kB / 381.7 MB, free: 88.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001541/0.7339, allocations: 83.34 kB / 381.8 MB, free: 88.42 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006032/0.7345, allocations: 362.2 kB / 382.1 MB, free: 88.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.421e-05/0.7345, allocations: 22.61 kB / 382.1 MB, free: 88.13 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.752e-05/0.7347, allocations: 21.34 kB / 382.2 MB, free: 88.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006981/0.7354, allocations: 294.6 kB / 382.4 MB, free: 88.04 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.7354, allocations: 0 / 382.4 MB, free: 88.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.533e-05/0.7355, allocations: 18.39 kB / 382.5 MB, free: 88.03 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.7355, allocations: 0 / 382.5 MB, free: 88.03 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004172/0.7359, allocations: 148.4 kB / 382.6 MB, free: 88 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001681/0.7376, allocations: 0.7604 MB / 383.4 MB, free: 87.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004887/0.7381, allocations: 210.8 kB / 383.6 MB, free: 87.46 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004087/0.7386, allocations: 185.6 kB / 383.8 MB, free: 87.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.7386, allocations: 0 / 383.8 MB, free: 87.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006623/0.7393, allocations: 443.8 kB / 384.2 MB, free: 87.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.716e-06/0.7393, allocations: 0 / 384.2 MB, free: 87.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001715/0.741, allocations: 0.8684 MB / 385.1 MB, free: 86.72 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.7411, allocations: 276.8 kB / 385.3 MB, free: 86.39 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001525/0.7427, allocations: 0.8301 MB / 386.2 MB, free: 85.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001076/0.7428, allocations: 37.7 kB / 386.2 MB, free: 85.6 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.724e-05/0.7429, allocations: 176.5 kB / 386.4 MB, free: 85.43 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.743, allocations: 73.92 kB / 386.4 MB, free: 85.36 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.487e-05/0.7431, allocations: 8 kB / 386.4 MB, free: 85.36 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.294e-05/0.7432, allocations: 322.6 kB / 386.8 MB, free: 85.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003817/0.7436, allocations: 143.3 kB / 386.9 MB, free: 84.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000394/0.744, allocations: 165.4 kB / 387.1 MB, free: 84.76 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004287/0.7444, allocations: 362.8 kB / 387.4 MB, free: 84.38 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.7444, allocations: 0 / 387.4 MB, free: 84.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001559/0.746, allocations: 0.8088 MB / 388.2 MB, free: 83.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001246/0.7461, allocations: 239.8 kB / 388.5 MB, free: 83.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.7462, allocations: 4 kB / 388.5 MB, free: 83.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.7462, allocations: 0 / 388.5 MB, free: 83.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.325e-05/0.7462, allocations: 15.64 kB / 388.5 MB, free: 83.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.7463, allocations: 0 / 388.5 MB, free: 83.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004623/0.7467, allocations: 31.33 kB / 388.5 MB, free: 83.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003055/0.747, allocations: 269.3 kB / 388.8 MB, free: 83.02 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.0003333/0.7474, allocations: 398.4 kB / 389.2 MB, free: 82.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.7476, allocations: 75.16 kB / 389.2 MB, free: 82.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003539/0.7479, allocations: 131 kB / 389.4 MB, free: 82.37 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.7479, allocations: 0 / 389.4 MB, free: 82.37 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.7479, allocations: 0 / 389.4 MB, free: 82.37 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.748, allocations: 0 / 389.4 MB, free: 82.37 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002441/0.7504, allocations: 1.487 MB / 390.8 MB, free: 80.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.7504, allocations: 0 / 390.8 MB, free: 80.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.634e-05/0.7505, allocations: 15.84 kB / 390.9 MB, free: 80.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.186e-06/0.7505, allocations: 4 kB / 390.9 MB, free: 80.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.711e-05/0.7506, allocations: 47.95 kB / 390.9 MB, free: 80.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.7506, allocations: 0 / 390.9 MB, free: 80.72 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.7506, allocations: 0 / 390.9 MB, free: 80.72 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001736/0.7524, allocations: 1.016 MB / 391.9 MB, free: 79.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009374/0.7533, allocations: 423.8 kB / 392.3 MB, free: 79.2 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001937/0.7535, allocations: 24 kB / 392.4 MB, free: 79.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004476/0.754, allocations: 35.89 kB / 392.4 MB, free: 79.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002493/0.7543, allocations: 75.75 kB / 392.5 MB, free: 79.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002967/0.7546, allocations: 267.8 kB / 392.7 MB, free: 78.81 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001237/0.7558, allocations: 0.6861 MB / 393.4 MB, free: 78.13 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7558, allocations: 0 / 393.4 MB, free: 78.13 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005792/0.7564, allocations: 92 kB / 393.5 MB, free: 78.04 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.002109/0.7585, allocations: 1.617 MB / 395.1 MB, free: 76.35 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001221/0.7598, allocations: 0.9013 MB / 396 MB, free: 75.36 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.7598, allocations: 0 / 396 MB, free: 75.36 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007414/0.7606, allocations: 0.7608 MB / 396.8 MB, free: 74.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/0.7621, allocations: 233.7 kB / 397 MB, free: 74.28 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002984/0.7651, allocations: 1.274 MB / 398.3 MB, free: 72.96 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006494/0.7657, allocations: 0.9519 MB / 399.2 MB, free: 71.98 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000232/0.766, allocations: 107.2 kB / 399.3 MB, free: 71.88 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.766, allocations: 0 / 399.3 MB, free: 71.88 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.742/3.508, allocations: 8.931 MB / 408.3 MB, free: 62.85 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