Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.993/1.993, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.992e-05/2.014e-05, allocations: 3.984 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3054, allocations: 44.5 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1725/0.478, allocations: 77.03 MB / 371.3 MB, free: 4.809 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.4783, allocations: 67.95 kB / 371.3 MB, free: 4.742 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09015/0.5684, allocations: 26.58 MB / 397.9 MB, free: 10.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5685, allocations: 0 / 397.9 MB, free: 10.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.227e-05/0.5685, allocations: 12 kB / 397.9 MB, free: 10.17 MB / 346.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.001355/0.5699, allocations: 1.012 MB / 398.9 MB, free: 9.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.5699, allocations: 12.02 kB / 398.9 MB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002015/0.5702, allocations: 83.06 kB / 399 MB, free: 8.977 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008074/0.571, allocations: 415.6 kB / 399.4 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.653e-05/0.5711, allocations: 20 kB / 399.4 MB, free: 8.512 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.5712, allocations: 27.94 kB / 399.5 MB, free: 8.484 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008263/0.572, allocations: 344.1 kB / 399.8 MB, free: 8.145 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.5731, allocations: 474.2 kB / 400.3 MB, free: 7.676 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.5731, allocations: 7.938 kB / 400.3 MB, free: 7.668 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.763e-05/0.5732, allocations: 8 kB / 400.3 MB, free: 7.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.5732, allocations: 0 / 400.3 MB, free: 7.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00214/0.5754, allocations: 0.8835 MB / 401.2 MB, free: 6.738 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.5765, allocations: 498.6 kB / 401.7 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009509/0.5774, allocations: 480.9 kB / 402.1 MB, free: 5.766 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.5775, allocations: 3.984 kB / 402.1 MB, free: 5.762 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001206/0.5787, allocations: 0.6227 MB / 402.8 MB, free: 5.102 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 2.655e-06/0.5787, allocations: 0 / 402.8 MB, free: 5.102 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.002417/0.5812, allocations: 0.8729 MB / 403.6 MB, free: 4.223 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002755/0.5815, allocations: 287.2 kB / 403.9 MB, free: 3.887 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002124/0.5836, allocations: 0.9839 MB / 404.9 MB, free: 2.891 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001292/0.5837, allocations: 37.7 kB / 404.9 MB, free: 2.848 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.5839, allocations: 145.9 kB / 405.1 MB, free: 2.703 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.5841, allocations: 67.31 kB / 405.1 MB, free: 2.637 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.798e-05/0.5842, allocations: 8 kB / 405.1 MB, free: 2.629 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.5844, allocations: 346.8 kB / 405.5 MB, free: 2.281 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007521/0.5851, allocations: 335.8 kB / 405.8 MB, free: 1.953 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007197/0.5858, allocations: 323.8 kB / 406.1 MB, free: 1.637 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005203/0.5864, allocations: 235.8 kB / 406.4 MB, free: 1.406 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.5864, allocations: 4 kB / 406.4 MB, free: 1.402 MB / 346.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002053/0.5885, allocations: 0.8404 MB / 407.2 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002564/0.5887, allocations: 243.9 kB / 407.4 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.5888, allocations: 0 / 407.4 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.5888, allocations: 0 / 407.4 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.536e-05/0.5888, allocations: 4 kB / 407.4 MB, free: 276 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.5889, allocations: 0 / 407.4 MB, free: 276 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005527/0.5894, allocations: 47.77 kB / 407.5 MB, free: 228 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002327/0.5897, allocations: 123.9 kB / 407.6 MB, free: 104 kB / 346.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.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].x,$PRE.dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.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.0005408/0.5902, allocations: 421.8 kB / 408 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00228/0.5925, allocations: 0.9456 MB / 409 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.5927, allocations: 87.06 kB / 409.1 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004716/0.5932, allocations: 152 kB / 409.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.5932, allocations: 0 / 409.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.5932, allocations: 3.953 kB / 409.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.5932, allocations: 0 / 409.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003285/0.5965, allocations: 1.595 MB / 410.8 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.5966, allocations: 3.938 kB / 410.8 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.619e-05/0.5966, allocations: 0 / 410.8 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.5966, allocations: 3.984 kB / 410.8 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.5967, allocations: 35.97 kB / 410.8 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.5967, allocations: 3.953 kB / 410.8 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.5968, allocations: 7.984 kB / 410.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002316/0.5991, allocations: 1.06 MB / 411.9 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001425/0.6005, allocations: 0.5581 MB / 412.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002774/0.6008, allocations: 51.97 kB / 412.5 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005291/0.6014, allocations: 35.97 kB / 412.6 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00064/0.602, allocations: 235.7 kB / 412.8 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002304/0.6023, allocations: 135.9 kB / 412.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001778/0.6041, allocations: 0.8147 MB / 413.7 MB, free: 9.836 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.6041, allocations: 0 / 413.7 MB, free: 9.836 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008152/0.6049, allocations: 124 kB / 413.9 MB, free: 9.715 MB / 362.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,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREG.dLATR.dataOut[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.next_assign_val[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.nextstate[1],dLATREG.dLATR.reset_flag,dLATREG.dLATR.enable_flag,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREG.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.0029/0.6078, allocations: 1.679 MB / 415.5 MB, free: 8.008 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002421/0.6103, allocations: 1.476 MB / 417 MB, free: 6.445 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.6103, allocations: 8 kB / 417 MB, free: 6.438 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001545/0.6119, allocations: 1.125 MB / 418.1 MB, free: 5.227 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001814/0.6137, allocations: 251 kB / 418.4 MB, free: 4.977 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00485/0.6186, allocations: 1.845 MB / 420.2 MB, free: 3.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001054/0.6197, allocations: 1.031 MB / 421.3 MB, free: 2.027 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002106/0.6199, allocations: 45.73 kB / 421.3 MB, free: 1.984 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/0.6201, allocations: 79.34 kB / 421.4 MB, free: 1.906 MB / 362.7 MB Notification: Performance of SimCode: time 1.002e-06/0.6201, allocations: 0 / 421.4 MB, free: 1.906 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3159/0.936, allocations: 14.74 MB / 436.1 MB, free: 105.2 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002489/0.9363, allocations: 135.6 kB / 436.3 MB, free: 105 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.555/3.492, allocations: 0 / 436.3 MB, free: 105 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat