Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.032/2.032, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.37e-05/2.369e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.2998, allocations: 44.5 MB / 294.2 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1398/0.4396, allocations: 77.03 MB / 371.2 MB, free: 4.852 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/0.4399, allocations: 67.97 kB / 371.3 MB, free: 4.785 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09084/0.5308, allocations: 26.58 MB / 397.9 MB, free: 10.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5309, allocations: 0 / 397.9 MB, free: 10.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.918e-05/0.5309, allocations: 8 kB / 397.9 MB, free: 10.22 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.00143/0.5323, allocations: 1.019 MB / 398.9 MB, free: 9.109 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.5324, allocations: 8.031 kB / 398.9 MB, free: 9.102 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.5326, allocations: 83.06 kB / 399 MB, free: 9.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008225/0.5334, allocations: 407.7 kB / 399.4 MB, free: 8.582 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.625e-05/0.5335, allocations: 19.98 kB / 399.4 MB, free: 8.562 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.5336, allocations: 27.89 kB / 399.4 MB, free: 8.535 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008135/0.5345, allocations: 340.2 kB / 399.8 MB, free: 8.199 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.5356, allocations: 478.2 kB / 400.2 MB, free: 7.727 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.5356, allocations: 0 / 400.2 MB, free: 7.727 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.192e-05/0.5357, allocations: 15.94 kB / 400.3 MB, free: 7.711 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.5358, allocations: 8 kB / 400.3 MB, free: 7.703 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002284/0.538, allocations: 0.8757 MB / 401.1 MB, free: 6.789 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009586/0.539, allocations: 494.6 kB / 401.6 MB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009145/0.54, allocations: 480.9 kB / 402.1 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.54, allocations: 3.984 kB / 402.1 MB, free: 5.816 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001166/0.5412, allocations: 0.6266 MB / 402.7 MB, free: 5.152 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 2.434e-06/0.5412, allocations: 4 kB / 402.7 MB, free: 5.148 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.002187/0.5434, allocations: 0.8729 MB / 403.6 MB, free: 4.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002197/0.5436, allocations: 283.2 kB / 403.9 MB, free: 3.938 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002007/0.5457, allocations: 0.9722 MB / 404.8 MB, free: 2.953 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.5458, allocations: 49.62 kB / 404.9 MB, free: 2.898 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.5459, allocations: 192.4 kB / 405.1 MB, free: 2.711 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.5461, allocations: 71.31 kB / 405.2 MB, free: 2.641 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.689e-05/0.5462, allocations: 8 kB / 405.2 MB, free: 2.633 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.5463, allocations: 330.8 kB / 405.5 MB, free: 2.301 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000722/0.547, allocations: 331.8 kB / 405.8 MB, free: 1.977 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007398/0.5478, allocations: 331.8 kB / 406.1 MB, free: 1.652 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005322/0.5483, allocations: 239.8 kB / 406.4 MB, free: 1.418 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.5484, allocations: 0 / 406.4 MB, free: 1.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001936/0.5503, allocations: 0.8172 MB / 407.2 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002493/0.5506, allocations: 247.8 kB / 407.4 MB, free: 316 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.5506, allocations: 4 kB / 407.4 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.5506, allocations: 0 / 407.4 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.064e-05/0.5507, allocations: 4 kB / 407.4 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.5507, allocations: 8 kB / 407.4 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005148/0.5512, allocations: 39.86 kB / 407.5 MB, free: 260 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002382/0.5515, allocations: 127.9 kB / 407.6 MB, free: 132 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.0005099/0.552, allocations: 409.8 kB / 408 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002226/0.5542, allocations: 0.9533 MB / 409 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001699/0.5544, allocations: 87.06 kB / 409 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004476/0.5549, allocations: 144 kB / 409.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.5549, allocations: 8 kB / 409.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.5549, allocations: 7.938 kB / 409.2 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.5549, allocations: 7.938 kB / 409.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003255/0.5582, allocations: 1.584 MB / 410.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.237e-06/0.5582, allocations: 0 / 410.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.505e-05/0.5582, allocations: 3.984 kB / 410.8 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.5582, allocations: 0 / 410.8 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001098/0.5584, allocations: 35.97 kB / 410.8 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.5584, allocations: 7.953 kB / 410.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.5584, allocations: 0 / 410.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002309/0.5607, allocations: 1.064 MB / 411.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001271/0.562, allocations: 0.5582 MB / 412.5 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002698/0.5623, allocations: 55.97 kB / 412.5 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005196/0.5628, allocations: 35.88 kB / 412.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006558/0.5635, allocations: 243.7 kB / 412.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002192/0.5637, allocations: 131.9 kB / 412.9 MB, free: 10.67 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001604/0.5653, allocations: 0.8109 MB / 413.7 MB, free: 9.867 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5654, allocations: 0 / 413.7 MB, free: 9.867 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006623/0.566, allocations: 116 kB / 413.8 MB, free: 9.754 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.002847/0.5689, allocations: 1.687 MB / 415.5 MB, free: 8.039 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00237/0.5713, allocations: 1.476 MB / 417 MB, free: 6.477 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.5713, allocations: 0 / 417 MB, free: 6.477 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001656/0.573, allocations: 1.128 MB / 418.1 MB, free: 5.262 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/0.5747, allocations: 254.9 kB / 418.4 MB, free: 5.008 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004807/0.5795, allocations: 1.925 MB / 420.3 MB, free: 3.035 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/0.5806, allocations: 1.027 MB / 421.3 MB, free: 1.977 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.5808, allocations: 83.34 kB / 421.4 MB, free: 1.895 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5808, allocations: 0 / 421.4 MB, free: 1.895 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.849/3.43, allocations: 8.886 MB / 430.3 MB, free: 106.4 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat