Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.034/2.034, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.773e-05/3.793e-05, allocations: 4 kB / 292.2 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1121, allocations: 50.41 MB / 342.6 MB, free: 5.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4634/0.5756, allocations: 83.2 MB / 425.9 MB, free: 10.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003145/0.576, allocations: 70.78 kB / 425.9 MB, free: 10.67 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0607/0.6367, allocations: 12.7 MB / 438.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.388e-06/0.6368, allocations: 0 / 438.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.188e-05/0.6368, allocations: 19.94 kB / 438.6 MB, free: 15.77 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.00397/0.6408, allocations: 1.069 MB / 439.7 MB, free: 14.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.661e-05/0.6409, allocations: 15.95 kB / 439.7 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003016/0.6412, allocations: 101.1 kB / 439.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003039/0.6415, allocations: 90.97 kB / 439.9 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001535/0.6431, allocations: 0.5054 MB / 440.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.112e-05/0.6432, allocations: 48.81 kB / 440.5 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001867/0.6434, allocations: 68.45 kB / 440.5 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.645, allocations: 0.5551 MB / 441.1 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.353e-05/0.6451, allocations: 0 / 441.1 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.6452, allocations: 27.5 kB / 441.1 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.367e-05/0.6453, allocations: 16 kB / 441.1 MB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001581/0.6469, allocations: 0.5331 MB / 441.7 MB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006718/0.6536, allocations: 2.349 MB / 444 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.6549, allocations: 463.5 kB / 444.5 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006249/0.6555, allocations: 257.7 kB / 444.7 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.692e-05/0.6556, allocations: 12.41 kB / 444.7 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008719/0.6565, allocations: 346.3 kB / 445.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 3.496e-06/0.6565, allocations: 0 / 445.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.1126/0.7692, allocations: 13.48 MB / 458.5 MB, free: 14.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.7693, allocations: 149.2 kB / 458.7 MB, free: 14.13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008907/0.7703, allocations: 453.4 kB / 459.1 MB, free: 13.71 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002506/0.7705, allocations: 45.7 kB / 459.2 MB, free: 13.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.7709, allocations: 395.7 kB / 459.6 MB, free: 13.26 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003985/0.7713, allocations: 311.5 kB / 459.9 MB, free: 12.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.7715, allocations: 23.94 kB / 459.9 MB, free: 12.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.7717, allocations: 386.8 kB / 460.3 MB, free: 12.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00151/0.7732, allocations: 474.3 kB / 460.7 MB, free: 12.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001692/0.7749, allocations: 0.6919 MB / 461.4 MB, free: 11.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.7765, allocations: 0.5431 MB / 462 MB, free: 10.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.7765, allocations: 4 kB / 462 MB, free: 10.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03973/0.8163, allocations: 4.84 MB / 466.8 MB, free: 5.875 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.593e-05/0.8164, allocations: 63.41 kB / 466.9 MB, free: 5.801 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-05/0.8164, allocations: 12.11 kB / 466.9 MB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06478/0.8812, allocations: 6.942 MB / 473.8 MB, free: 14.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/0.8827, allocations: 179.7 kB / 474 MB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009454/0.8922, allocations: 2.817 MB / 476.8 MB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00339/0.8956, allocations: 235.7 kB / 477 MB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003226/0.896, allocations: 51.92 kB / 477.1 MB, free: 11.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.000414/0.8964, allocations: 152.9 kB / 477.2 MB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003045/0.8967, allocations: 79.06 kB / 477.3 MB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0393/0.936, allocations: 4.689 MB / 482 MB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.273e-05/0.9361, allocations: 8 kB / 482 MB, free: 6.551 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.9361, allocations: 4 kB / 482 MB, free: 6.547 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-05/0.9362, allocations: 3.984 kB / 482 MB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002424/0.9386, allocations: 1.118 MB / 483.1 MB, free: 5.375 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/0.9387, allocations: 0 / 483.1 MB, free: 5.375 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.9398, allocations: 131.8 kB / 483.3 MB, free: 5.246 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06438/1.004, allocations: 6.891 MB / 490.2 MB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003073/1.005, allocations: 31.97 kB / 490.2 MB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009301/1.014, allocations: 2.826 MB / 493 MB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.014, allocations: 3.938 kB / 493 MB, free: 11.42 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04111/1.055, allocations: 5.329 MB / 498.4 MB, free: 6.066 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003025/1.055, allocations: 140.2 kB / 498.5 MB, free: 5.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002572/1.056, allocations: 23.95 kB / 498.5 MB, free: 5.887 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002825/1.059, allocations: 211.8 kB / 498.7 MB, free: 5.68 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004208/1.059, allocations: 100.6 kB / 498.8 MB, free: 5.582 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001671/1.059, allocations: 31.98 kB / 498.9 MB, free: 5.551 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006768/1.06, allocations: 345.6 kB / 499.2 MB, free: 5.215 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.06, allocations: 4 kB / 499.2 MB, free: 5.211 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001219/1.061, allocations: 275.9 kB / 499.5 MB, free: 4.941 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.04167/1.103, allocations: 5.911 MB / 0.4935 GB, free: 14.98 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007866/1.111, allocations: 1.645 MB / 0.4951 GB, free: 13.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/1.111, allocations: 0 / 0.4951 GB, free: 13.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00608/1.117, allocations: 0.9655 MB / 0.4961 GB, free: 12.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/1.118, allocations: 118.5 kB / 0.4962 GB, free: 12.24 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005153/1.123, allocations: 1.36 MB / 0.4975 GB, free: 10.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007374/1.124, allocations: 0.9706 MB / 0.4985 GB, free: 9.84 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004984/1.124, allocations: 62.25 kB / 0.4985 GB, free: 9.777 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000548/1.125, allocations: 271.3 kB / 0.4988 GB, free: 9.512 MB / 426.7 MB Notification: Performance of SimCode: time 1.603e-06/1.125, allocations: 0 / 0.4988 GB, free: 9.512 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.355/1.48, allocations: 26.94 MB / 0.5251 GB, free: 146.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002259/1.48, allocations: 181 kB / 0.5253 GB, free: 146.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.755/5.236, allocations: 3.938 kB / 0.5253 GB, free: 146.3 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat does not exist to compare? outputFormat=mat