Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.921/1.921, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.04e-05/3.056e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09174/0.09181, allocations: 44.51 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4067/0.4986, allocations: 78.05 MB / 378 MB, free: 12.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/0.4988, allocations: 69.92 kB / 378.1 MB, free: 12.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1137/0.6126, allocations: 38.73 MB / 416.8 MB, free: 3.805 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.6126, allocations: 0 / 416.8 MB, free: 3.805 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.194e-05/0.6127, allocations: 19.38 kB / 416.8 MB, free: 3.801 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001597/0.6143, allocations: 1.328 MB / 418.1 MB, free: 2.711 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.6144, allocations: 7.875 kB / 418.1 MB, free: 2.711 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001645/0.6145, allocations: 64.73 kB / 418.2 MB, free: 2.664 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002294/0.6148, allocations: 132.2 kB / 418.3 MB, free: 2.598 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009485/0.6157, allocations: 0.5149 MB / 418.8 MB, free: 2.242 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.671e-05/0.6158, allocations: 22.58 kB / 418.9 MB, free: 2.238 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.6159, allocations: 26.81 kB / 418.9 MB, free: 2.238 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.6172, allocations: 0.6179 MB / 419.5 MB, free: 2.082 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.6172, allocations: 0 / 419.5 MB, free: 2.082 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.629e-05/0.6173, allocations: 18.86 kB / 419.5 MB, free: 2.078 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.6174, allocations: 3.906 kB / 419.5 MB, free: 2.078 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009294/0.6183, allocations: 467 kB / 420 MB, free: 2.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002556/0.6209, allocations: 1.165 MB / 421.2 MB, free: 1.418 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.622, allocations: 0.7012 MB / 421.9 MB, free: 1.328 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001041/0.6231, allocations: 0.676 MB / 422.5 MB, free: 1.266 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.6231, allocations: 7.938 kB / 422.5 MB, free: 1.258 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.6243, allocations: 0.7488 MB / 423.3 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 4.127e-06/0.6243, allocations: 0 / 423.3 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002604/0.627, allocations: 1.405 MB / 424.7 MB, free: 444 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001807/0.6272, allocations: 335.9 kB / 425 MB, free: 104 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003537/0.6307, allocations: 1.621 MB / 426.6 MB, free: 15.46 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002143/0.631, allocations: 44.66 kB / 426.7 MB, free: 15.42 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002742/0.6313, allocations: 254.2 kB / 426.9 MB, free: 15.26 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.6314, allocations: 76.8 kB / 427 MB, free: 15.21 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.668e-05/0.6315, allocations: 10.56 kB / 427 MB, free: 15.21 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.6317, allocations: 325.5 kB / 427.3 MB, free: 14.9 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009152/0.6326, allocations: 448.6 kB / 427.8 MB, free: 14.85 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009038/0.6335, allocations: 458.7 kB / 428.2 MB, free: 14.78 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009329/0.6345, allocations: 0.5918 MB / 428.8 MB, free: 14.45 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.6345, allocations: 0 / 428.8 MB, free: 14.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002456/0.637, allocations: 1.301 MB / 430.1 MB, free: 14.01 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002929/0.6373, allocations: 296.7 kB / 430.4 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/0.6373, allocations: 0 / 430.4 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.6373, allocations: 0 / 430.4 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.68e-05/0.6374, allocations: 7.922 kB / 430.4 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.6374, allocations: 3.875 kB / 430.4 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006555/0.6381, allocations: 49.94 kB / 430.5 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002154/0.6383, allocations: 129.4 kB / 430.6 MB, free: 13.7 MB / 330.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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * 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.000571/0.6389, allocations: 464.3 kB / 431 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002428/0.6392, allocations: 132.4 kB / 431.2 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007953/0.64, allocations: 256.5 kB / 431.4 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.64, allocations: 0 / 431.4 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.64, allocations: 0 / 431.4 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-06/0.64, allocations: 0 / 431.4 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004605/0.6446, allocations: 2.405 MB / 433.8 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.6447, allocations: 0 / 433.8 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.304e-05/0.6447, allocations: 7.891 kB / 433.8 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.6447, allocations: 0 / 433.8 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001107/0.6449, allocations: 38.38 kB / 433.9 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.6449, allocations: 0 / 433.9 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.6449, allocations: 3.938 kB / 433.9 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003079/0.648, allocations: 1.632 MB / 435.5 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002003/0.65, allocations: 0.6746 MB / 436.2 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00033/0.6504, allocations: 71.91 kB / 436.3 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006328/0.651, allocations: 35.97 kB / 436.3 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000991/0.652, allocations: 379.4 kB / 436.7 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002462/0.6523, allocations: 127.9 kB / 436.8 MB, free: 10.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003346/0.6557, allocations: 1.335 MB / 438.1 MB, free: 8.684 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.11e-07/0.6557, allocations: 4 kB / 438.1 MB, free: 8.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009009/0.6566, allocations: 148 kB / 438.3 MB, free: 8.535 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * 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.004062/0.6607, allocations: 2.266 MB / 440.5 MB, free: 6.188 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003421/0.6642, allocations: 1.924 MB / 442.5 MB, free: 4.164 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.6642, allocations: 0 / 442.5 MB, free: 4.164 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002176/0.6664, allocations: 1.436 MB / 443.9 MB, free: 2.633 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002058/0.6685, allocations: 299.4 kB / 444.2 MB, free: 2.344 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007555/0.6761, allocations: 2.856 MB / 447 MB, free: 15.43 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001607/0.6777, allocations: 1.219 MB / 448.3 MB, free: 14.18 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002617/0.678, allocations: 135.4 kB / 448.4 MB, free: 14.05 MB / 346.7 MB Notification: Performance of SimCode: time 1.173e-06/0.678, allocations: 0 / 448.4 MB, free: 14.05 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.731/3.409, allocations: 13.79 MB / 462.2 MB, free: 84 kB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat