Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.771/1.771, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.207e-05/2.206e-05, allocations: 4 kB / 219.6 MB, free: 6.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.252, allocations: 38.77 MB / 258.3 MB, free: 12.19 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1257/0.3778, allocations: 71.72 MB / 330.1 MB, free: 6.055 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.3781, allocations: 67.91 kB / 330.1 MB, free: 5.988 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09092/0.469, allocations: 26.5 MB / 356.6 MB, free: 11.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4691, allocations: 0 / 356.6 MB, free: 11.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.192e-05/0.4691, allocations: 11.94 kB / 356.6 MB, free: 11.49 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.001466/0.4706, allocations: 1.008 MB / 357.7 MB, free: 10.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.4707, allocations: 8.031 kB / 357.7 MB, free: 10.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002256/0.4709, allocations: 90.92 kB / 357.7 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008347/0.4717, allocations: 423.6 kB / 358.2 MB, free: 9.844 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.589e-05/0.4718, allocations: 16 kB / 358.2 MB, free: 9.828 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.4719, allocations: 20 kB / 358.2 MB, free: 9.809 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008138/0.4728, allocations: 336.2 kB / 358.5 MB, free: 9.477 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00107/0.4738, allocations: 474.2 kB / 359 MB, free: 9.008 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.4739, allocations: 3.938 kB / 359 MB, free: 9.004 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.95e-05/0.474, allocations: 8 kB / 359 MB, free: 8.996 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.474, allocations: 7.953 kB / 359 MB, free: 8.988 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002154/0.4762, allocations: 0.8757 MB / 359.9 MB, free: 8.074 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009486/0.4771, allocations: 486.7 kB / 360.4 MB, free: 7.586 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008762/0.478, allocations: 476.9 kB / 360.8 MB, free: 7.117 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.437e-05/0.4781, allocations: 0 / 360.8 MB, free: 7.117 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001113/0.4792, allocations: 0.6228 MB / 361.4 MB, free: 6.457 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 2.855e-06/0.4792, allocations: 0 / 361.4 MB, free: 6.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002188/0.4814, allocations: 0.8558 MB / 362.3 MB, free: 5.594 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002192/0.4817, allocations: 283.3 kB / 362.6 MB, free: 5.262 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002084/0.4838, allocations: 0.976 MB / 363.6 MB, free: 4.273 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001363/0.4839, allocations: 37.7 kB / 363.6 MB, free: 4.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.4841, allocations: 142 kB / 363.7 MB, free: 4.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.4842, allocations: 67.17 kB / 363.8 MB, free: 4.023 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.882e-05/0.4843, allocations: 8 kB / 363.8 MB, free: 4.016 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.4845, allocations: 338.8 kB / 364.1 MB, free: 3.676 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008126/0.4853, allocations: 331.7 kB / 364.5 MB, free: 3.352 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007439/0.4861, allocations: 327.7 kB / 364.8 MB, free: 3.031 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000519/0.4866, allocations: 231.8 kB / 365 MB, free: 2.805 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.4867, allocations: 4 kB / 365 MB, free: 2.801 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001992/0.4887, allocations: 0.8208 MB / 365.8 MB, free: 1.973 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002547/0.4889, allocations: 243.9 kB / 366.1 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.924e-06/0.489, allocations: 0 / 366.1 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.489, allocations: 0 / 366.1 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.98e-05/0.489, allocations: 0 / 366.1 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.4891, allocations: 4 kB / 366.1 MB, free: 1.688 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000578/0.4896, allocations: 39.91 kB / 366.1 MB, free: 1.648 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002217/0.4899, allocations: 131.9 kB / 366.2 MB, free: 1.52 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.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.0005231/0.4904, allocations: 406 kB / 366.6 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002272/0.4927, allocations: 0.9532 MB / 367.6 MB, free: 112 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.4929, allocations: 87.06 kB / 367.7 MB, free: 24 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2062/0.6991, allocations: 138.1 kB / 367.8 MB, free: 92.33 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.6992, allocations: 1.719 kB / 367.8 MB, free: 92.33 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.6992, allocations: 0.6562 kB / 367.8 MB, free: 92.33 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.6992, allocations: 2.375 kB / 367.8 MB, free: 92.33 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003766/0.703, allocations: 1.566 MB / 369.4 MB, free: 92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.703, allocations: 0 / 369.4 MB, free: 92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.138e-05/0.7031, allocations: 11.91 kB / 369.4 MB, free: 92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.7031, allocations: 0 / 369.4 MB, free: 92 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.24e-05/0.7032, allocations: 31.61 kB / 369.4 MB, free: 92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.7032, allocations: 0 / 369.4 MB, free: 92 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.7032, allocations: 6.781 kB / 369.4 MB, free: 92 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002187/0.7054, allocations: 1.044 MB / 370.5 MB, free: 91.87 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001271/0.7067, allocations: 0.5548 MB / 371 MB, free: 91.7 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002759/0.707, allocations: 59.19 kB / 371.1 MB, free: 91.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005283/0.7075, allocations: 34.42 kB / 371.1 MB, free: 91.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006083/0.7082, allocations: 237.3 kB / 371.4 MB, free: 91.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002207/0.7084, allocations: 124.7 kB / 371.5 MB, free: 91.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001529/0.7099, allocations: 0.8139 MB / 372.3 MB, free: 91.48 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.71, allocations: 0 / 372.3 MB, free: 91.48 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006847/0.7107, allocations: 114.8 kB / 372.4 MB, free: 91.48 MB / 314.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.002426/0.7131, allocations: 1.684 MB / 374.1 MB, free: 90.77 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001903/0.715, allocations: 1.467 MB / 375.6 MB, free: 90.33 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.715, allocations: 0 / 375.6 MB, free: 90.33 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.7162, allocations: 1.116 MB / 376.7 MB, free: 89.7 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001669/0.7179, allocations: 272.2 kB / 376.9 MB, free: 89.65 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004125/0.722, allocations: 1.822 MB / 378.8 MB, free: 88.93 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008345/0.7229, allocations: 1.039 MB / 379.8 MB, free: 88.14 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.00021/0.7232, allocations: 36.73 kB / 379.8 MB, free: 88.14 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.7233, allocations: 69.95 kB / 379.9 MB, free: 88.08 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.7233, allocations: 0 / 379.9 MB, free: 88.08 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05734/0.7806, allocations: 14.68 MB / 394.6 MB, free: 78.41 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002178/0.7809, allocations: 142.1 kB / 394.7 MB, free: 78.2 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.584/3.365, allocations: 0 / 394.7 MB, free: 78.2 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat