Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.061/2.061, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.486e-05/3.514e-05, allocations: 4 kB / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 44.52 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4244/0.5289, allocations: 78.45 MB / 378.4 MB, free: 12.53 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/0.5292, allocations: 68.14 kB / 378.5 MB, free: 12.53 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1322/0.6615, allocations: 43.15 MB / 421.6 MB, free: 4.016 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.6615, allocations: 0 / 421.6 MB, free: 4.016 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.008e-05/0.6616, allocations: 7.719 kB / 421.6 MB, free: 4.016 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.001083/0.6626, allocations: 0.9539 MB / 422.6 MB, free: 3.137 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.6627, allocations: 11.38 kB / 422.6 MB, free: 3.137 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001329/0.6629, allocations: 45.75 kB / 422.6 MB, free: 3.098 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001699/0.663, allocations: 77.72 kB / 422.7 MB, free: 3.059 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006266/0.6637, allocations: 361.5 kB / 423.1 MB, free: 2.781 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.441e-05/0.6637, allocations: 19.66 kB / 423.1 MB, free: 2.777 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.322e-05/0.6638, allocations: 27.27 kB / 423.1 MB, free: 2.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007245/0.6646, allocations: 293.4 kB / 423.4 MB, free: 2.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.6646, allocations: 0 / 423.4 MB, free: 2.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.528e-05/0.6647, allocations: 7.75 kB / 423.4 MB, free: 2.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.6647, allocations: 0 / 423.4 MB, free: 2.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004194/0.6651, allocations: 153.1 kB / 423.5 MB, free: 2.641 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001865/0.667, allocations: 0.7754 MB / 424.3 MB, free: 2.188 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005319/0.6676, allocations: 212.2 kB / 424.5 MB, free: 2.145 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000412/0.668, allocations: 187.7 kB / 424.7 MB, free: 2.121 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.6681, allocations: 3.219 kB / 424.7 MB, free: 2.121 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006909/0.6688, allocations: 432.5 kB / 425.1 MB, free: 1.852 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 3.076e-06/0.6688, allocations: 0 / 425.1 MB, free: 1.852 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001821/0.6706, allocations: 0.8552 MB / 426 MB, free: 1.457 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.6708, allocations: 279.6 kB / 426.3 MB, free: 1.141 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00171/0.6725, allocations: 0.8321 MB / 427.1 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001732/0.6727, allocations: 35.42 kB / 427.1 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.5e-05/0.6728, allocations: 186.2 kB / 427.3 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.673, allocations: 65 kB / 427.4 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.753e-05/0.673, allocations: 10.84 kB / 427.4 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.695e-05/0.6731, allocations: 322.7 kB / 427.7 MB, free: 244 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003999/0.6735, allocations: 141.5 kB / 427.8 MB, free: 232 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004468/0.674, allocations: 167.6 kB / 428 MB, free: 196 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005224/0.6745, allocations: 352.3 kB / 428.3 MB, free: 15.92 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.6746, allocations: 4 kB / 428.4 MB, free: 15.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001758/0.6763, allocations: 0.8147 MB / 429.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002112/0.6766, allocations: 245.3 kB / 429.4 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.6766, allocations: 0 / 429.4 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.6766, allocations: 0 / 429.4 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.839e-05/0.6767, allocations: 10 kB / 429.4 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.6767, allocations: 3.938 kB / 429.4 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005002/0.6772, allocations: 30.44 kB / 429.4 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003386/0.6776, allocations: 261.3 kB / 429.7 MB, free: 15.24 MB / 330.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.0004763/0.6781, allocations: 406.5 kB / 430.1 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/0.6783, allocations: 73.97 kB / 430.2 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004235/0.6787, allocations: 124.4 kB / 430.3 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.6787, allocations: 3.875 kB / 430.3 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.6788, allocations: 0 / 430.3 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.6788, allocations: 3.984 kB / 430.3 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003064/0.6818, allocations: 1.494 MB / 431.8 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.6819, allocations: 0 / 431.8 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.103e-05/0.6819, allocations: 3.906 kB / 431.8 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.208e-06/0.682, allocations: 0 / 431.8 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.6821, allocations: 45.59 kB / 431.8 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.6821, allocations: 0 / 431.8 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/0.6821, allocations: 3.984 kB / 431.8 MB, free: 13.89 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002066/0.6842, allocations: 1.014 MB / 432.9 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/0.6854, allocations: 436.8 kB / 433.3 MB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002251/0.6857, allocations: 31.83 kB / 433.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004656/0.6862, allocations: 27.27 kB / 433.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002916/0.6865, allocations: 81.88 kB / 433.4 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003211/0.6868, allocations: 267.1 kB / 433.7 MB, free: 13.06 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001599/0.6884, allocations: 0.6842 MB / 434.4 MB, free: 12.78 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.6885, allocations: 0 / 434.4 MB, free: 12.78 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000759/0.6892, allocations: 92.34 kB / 434.5 MB, free: 12.78 MB / 330.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.00274/0.692, allocations: 1.616 MB / 436.1 MB, free: 11.43 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001618/0.6937, allocations: 0.8944 MB / 437 MB, free: 10.62 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.6937, allocations: 0 / 437 MB, free: 10.62 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.6948, allocations: 0.7619 MB / 437.7 MB, free: 9.926 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001771/0.6966, allocations: 224.9 kB / 438 MB, free: 9.738 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004099/0.7008, allocations: 1.28 MB / 439.2 MB, free: 8.527 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009653/0.7018, allocations: 0.9558 MB / 440.2 MB, free: 7.543 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003121/0.7021, allocations: 103.2 kB / 440.3 MB, free: 7.441 MB / 330.7 MB Notification: Performance of SimCode: time 1.533e-06/0.7021, allocations: 0 / 440.3 MB, free: 7.441 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.7/3.402, allocations: 8.933 MB / 449.2 MB, free: 14.36 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat