Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.677/1.677, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.268e-05/2.277e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2525, allocations: 38.76 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.3782, allocations: 72.03 MB / 330.3 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/0.3785, allocations: 71.97 kB / 330.4 MB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1019/0.4804, allocations: 29.91 MB / 360.3 MB, free: 7.906 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4805, allocations: 0 / 360.3 MB, free: 7.906 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.967e-05/0.4806, allocations: 16 kB / 360.3 MB, free: 7.891 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.001969/0.4825, allocations: 1.296 MB / 361.6 MB, free: 6.496 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.4826, allocations: 8.031 kB / 361.6 MB, free: 6.488 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003855/0.483, allocations: 134.4 kB / 361.8 MB, free: 6.355 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/0.4842, allocations: 0.5132 MB / 362.3 MB, free: 5.793 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.824e-05/0.4843, allocations: 20 kB / 362.3 MB, free: 5.773 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.4844, allocations: 20 kB / 362.3 MB, free: 5.754 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001058/0.4855, allocations: 443.8 kB / 362.8 MB, free: 5.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.4868, allocations: 0.5793 MB / 363.3 MB, free: 4.734 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.4869, allocations: 3.984 kB / 363.3 MB, free: 4.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.664e-05/0.487, allocations: 23.94 kB / 363.4 MB, free: 4.707 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.036e-06/0.487, allocations: 4 kB / 363.4 MB, free: 4.703 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002689/0.4897, allocations: 1.079 MB / 364.5 MB, free: 3.582 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.4911, allocations: 0.6702 MB / 365.1 MB, free: 2.902 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001225/0.4923, allocations: 0.6569 MB / 365.8 MB, free: 2.242 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.11e-05/0.4924, allocations: 0 / 365.8 MB, free: 2.242 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001431/0.4938, allocations: 0.7369 MB / 366.5 MB, free: 1.465 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.096e-06/0.4938, allocations: 4 kB / 366.5 MB, free: 1.461 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002615/0.4964, allocations: 1.073 MB / 367.6 MB, free: 392 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2085/0.7049, allocations: 329 kB / 367.9 MB, free: 0 / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003512/0.7085, allocations: 1.395 MB / 369.3 MB, free: 90.22 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002463/0.7088, allocations: 41.05 kB / 369.3 MB, free: 90.19 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.709, allocations: 253.7 kB / 369.6 MB, free: 90.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001696/0.7092, allocations: 76.27 kB / 369.7 MB, free: 90.03 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.993e-05/0.7093, allocations: 12.16 kB / 369.7 MB, free: 90.03 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.309e-05/0.7094, allocations: 327.5 kB / 370 MB, free: 89.71 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008683/0.7103, allocations: 429.5 kB / 370.4 MB, free: 89.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008168/0.7111, allocations: 429.3 kB / 370.8 MB, free: 89.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005566/0.7117, allocations: 289.7 kB / 371.1 MB, free: 89.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.7117, allocations: 0 / 371.1 MB, free: 89.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002208/0.7139, allocations: 0.9682 MB / 372.1 MB, free: 89.67 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002375/0.7142, allocations: 291.8 kB / 372.4 MB, free: 89.42 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/0.7142, allocations: 5 kB / 372.4 MB, free: 89.42 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.7142, allocations: 0 / 372.4 MB, free: 89.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.12e-05/0.7143, allocations: 2.125 kB / 372.4 MB, free: 89.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.7143, allocations: 1.125 kB / 372.4 MB, free: 89.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006407/0.7149, allocations: 48.55 kB / 372.4 MB, free: 89.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002325/0.7152, allocations: 131.6 kB / 372.6 MB, free: 89.41 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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.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.0004876/0.7157, allocations: 458.3 kB / 373 MB, free: 89.05 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002471/0.7182, allocations: 1.156 MB / 374.2 MB, free: 88.95 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001932/0.7184, allocations: 140.8 kB / 374.3 MB, free: 88.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005262/0.7189, allocations: 205.8 kB / 374.5 MB, free: 88.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.719, allocations: 0 / 374.5 MB, free: 88.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.719, allocations: 2.812 kB / 374.5 MB, free: 88.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.719, allocations: 0 / 374.5 MB, free: 88.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003289/0.7223, allocations: 1.933 MB / 376.4 MB, free: 88.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.7223, allocations: 3.703 kB / 376.4 MB, free: 88.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.698e-05/0.7224, allocations: 0 / 376.4 MB, free: 88.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.7224, allocations: 0 / 376.4 MB, free: 88.46 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.701e-05/0.7225, allocations: 37.75 kB / 376.5 MB, free: 88.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.7225, allocations: 3.75 kB / 376.5 MB, free: 88.46 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.7225, allocations: 0 / 376.5 MB, free: 88.46 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002273/0.7248, allocations: 1.265 MB / 377.7 MB, free: 88.26 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001463/0.7263, allocations: 0.6462 MB / 378.4 MB, free: 88.05 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003028/0.7266, allocations: 59.89 kB / 378.5 MB, free: 88.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005864/0.7272, allocations: 47.53 kB / 378.5 MB, free: 88.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008348/0.728, allocations: 373 kB / 378.9 MB, free: 87.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001928/0.7283, allocations: 136.8 kB / 379 MB, free: 87.94 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002025/0.7303, allocations: 1.145 MB / 380.1 MB, free: 87.47 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.7303, allocations: 2.297 kB / 380.1 MB, free: 87.47 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008012/0.7311, allocations: 146.7 kB / 380.3 MB, free: 87.46 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.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.002762/0.7339, allocations: 1.907 MB / 382.2 MB, free: 86.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002414/0.7363, allocations: 1.864 MB / 384.1 MB, free: 85.28 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.7364, allocations: 0 / 384.1 MB, free: 85.28 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001552/0.7379, allocations: 1.4 MB / 385.5 MB, free: 84.28 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001874/0.7399, allocations: 301 kB / 385.8 MB, free: 84.21 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005318/0.7452, allocations: 2.641 MB / 388.4 MB, free: 82.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/0.7463, allocations: 1.173 MB / 389.6 MB, free: 81.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002019/0.7465, allocations: 140.1 kB / 389.7 MB, free: 81.43 MB / 314.7 MB Notification: Performance of SimCode: time 1.132e-06/0.7465, allocations: 0 / 389.7 MB, free: 81.43 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.755/3.502, allocations: 12.76 MB / 402.5 MB, free: 70.33 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat