Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.898/1.898, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.908e-05/2.919e-05, allocations: 0 / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09016/0.09022, allocations: 44.52 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3954/0.4857, allocations: 77.72 MB / 377.7 MB, free: 12.6 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.486, allocations: 66.88 kB / 377.7 MB, free: 12.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09735/0.5833, allocations: 33.36 MB / 411.1 MB, free: 6.375 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.5834, allocations: 3.938 kB / 411.1 MB, free: 6.371 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.462e-05/0.5834, allocations: 11.66 kB / 411.1 MB, free: 6.371 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001055/0.5845, allocations: 1.016 MB / 412.1 MB, free: 5.496 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.5845, allocations: 7.938 kB / 412.1 MB, free: 5.496 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001048/0.5846, allocations: 52.7 kB / 412.2 MB, free: 5.453 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001538/0.5848, allocations: 89.81 kB / 412.3 MB, free: 5.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006832/0.5855, allocations: 414.8 kB / 412.7 MB, free: 5.113 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.69e-05/0.5856, allocations: 22.47 kB / 412.7 MB, free: 5.109 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.534e-05/0.5857, allocations: 23.16 kB / 412.7 MB, free: 5.109 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.5867, allocations: 0.4911 MB / 413.2 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.5867, allocations: 0 / 413.2 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.438e-05/0.5868, allocations: 10.06 kB / 413.2 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.495e-06/0.5868, allocations: 3.969 kB / 413.2 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007122/0.5876, allocations: 352.4 kB / 413.6 MB, free: 4.926 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.5894, allocations: 0.9296 MB / 414.5 MB, free: 4.422 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007942/0.5902, allocations: 0.4916 MB / 415 MB, free: 4.352 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007677/0.591, allocations: 495.8 kB / 415.5 MB, free: 4.293 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.591, allocations: 3.969 kB / 415.5 MB, free: 4.293 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000955/0.592, allocations: 0.6348 MB / 416.1 MB, free: 3.988 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 2.555e-06/0.592, allocations: 0 / 416.1 MB, free: 3.988 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.00209/0.5941, allocations: 1.134 MB / 417.2 MB, free: 3.566 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/0.5943, allocations: 284.8 kB / 417.5 MB, free: 3.273 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001883/0.5962, allocations: 1.018 MB / 418.5 MB, free: 2.871 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.682e-05/0.5963, allocations: 40.89 kB / 418.6 MB, free: 2.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.619e-05/0.5964, allocations: 201 kB / 418.8 MB, free: 2.676 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.5965, allocations: 72.61 kB / 418.8 MB, free: 2.629 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.38e-05/0.5966, allocations: 11.19 kB / 418.9 MB, free: 2.629 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.345e-05/0.5966, allocations: 325.8 kB / 419.2 MB, free: 2.309 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000661/0.5973, allocations: 346.1 kB / 419.5 MB, free: 2.266 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006548/0.598, allocations: 341.4 kB / 419.8 MB, free: 2.223 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006374/0.5986, allocations: 0.4889 MB / 420.3 MB, free: 1.941 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.5987, allocations: 0 / 420.3 MB, free: 1.941 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001895/0.6006, allocations: 1.08 MB / 421.4 MB, free: 1.551 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001741/0.6008, allocations: 245.8 kB / 421.7 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.6008, allocations: 0 / 421.7 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.6008, allocations: 3.875 kB / 421.7 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.221e-05/0.6008, allocations: 11.86 kB / 421.7 MB, free: 1.309 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.136e-06/0.6009, allocations: 0 / 421.7 MB, free: 1.309 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005118/0.6014, allocations: 42.98 kB / 421.7 MB, free: 1.293 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001749/0.6016, allocations: 122.7 kB / 421.8 MB, free: 1.285 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 7 * 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.0003888/0.602, allocations: 414 kB / 422.2 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.6021, allocations: 89.53 kB / 422.3 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000401/0.6025, allocations: 145.9 kB / 422.5 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.6026, allocations: 0 / 422.5 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.6026, allocations: 4 kB / 422.5 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.6026, allocations: 0 / 422.5 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003162/0.6058, allocations: 1.941 MB / 424.4 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.6058, allocations: 4 kB / 424.4 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.373e-05/0.6058, allocations: 0 / 424.4 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.311e-06/0.6058, allocations: 3.875 kB / 424.4 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.044e-05/0.6059, allocations: 31.11 kB / 424.4 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.6059, allocations: 0 / 424.4 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/0.606, allocations: 7.922 kB / 424.5 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002425/0.6084, allocations: 1.355 MB / 425.8 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/0.6097, allocations: 0.5642 MB / 426.4 MB, free: 15.08 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002224/0.6099, allocations: 61 kB / 426.4 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005418/0.6105, allocations: 34.47 kB / 426.5 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005725/0.6111, allocations: 232.1 kB / 426.7 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001806/0.6112, allocations: 131 kB / 426.8 MB, free: 14.98 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001611/0.6129, allocations: 0.8528 MB / 427.7 MB, free: 14.65 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6129, allocations: 3.75 kB / 427.7 MB, free: 14.65 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005902/0.6135, allocations: 121.8 kB / 427.8 MB, free: 14.65 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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 7 * 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.002975/0.6165, allocations: 1.989 MB / 429.8 MB, free: 13.55 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002225/0.6187, allocations: 1.52 MB / 431.3 MB, free: 12.99 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.6187, allocations: 0 / 431.3 MB, free: 12.99 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001462/0.6202, allocations: 1.135 MB / 432.4 MB, free: 12.21 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001648/0.6219, allocations: 258.3 kB / 432.7 MB, free: 12.1 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004345/0.6262, allocations: 1.947 MB / 434.6 MB, free: 11.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001014/0.6273, allocations: 1.039 MB / 435.7 MB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.6274, allocations: 72.94 kB / 435.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of SimCode: time 8.12e-07/0.6275, allocations: 0 / 435.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.727/3.355, allocations: 8.921 MB / 444.7 MB, free: 1.566 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat