Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.778/1.778, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.164e-05/3.169e-05, allocations: 4 kB / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2543, allocations: 38.77 MB / 263.9 MB, free: 9.723 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1308/0.3852, allocations: 71.51 MB / 335.4 MB, free: 2.109 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/0.3855, allocations: 71.95 kB / 335.5 MB, free: 2.039 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07646/0.462, allocations: 13.94 MB / 349.4 MB, free: 4.043 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.462, allocations: 0 / 349.4 MB, free: 4.043 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.006e-05/0.4621, allocations: 12 kB / 349.4 MB, free: 4.031 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.006351/0.4684, allocations: 1.335 MB / 350.7 MB, free: 2.633 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.4685, allocations: 8.031 kB / 350.7 MB, free: 2.625 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002312/0.4687, allocations: 106.5 kB / 350.8 MB, free: 2.512 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002627/0.469, allocations: 90.97 kB / 350.9 MB, free: 2.422 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002042/0.4711, allocations: 0.5835 MB / 351.5 MB, free: 1.797 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.326e-05/0.4711, allocations: 45.31 kB / 351.6 MB, free: 1.754 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002069/0.4714, allocations: 64 kB / 351.6 MB, free: 1.691 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/0.4732, allocations: 0.613 MB / 352.2 MB, free: 1.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.583e-05/0.4732, allocations: 0 / 352.2 MB, free: 1.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001178/0.4733, allocations: 28 kB / 352.3 MB, free: 1.043 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.093e-05/0.4734, allocations: 12 kB / 352.3 MB, free: 1.031 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001907/0.4753, allocations: 0.6236 MB / 352.9 MB, free: 420 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006692/0.482, allocations: 2.369 MB / 355.3 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001466/0.4835, allocations: 0.4923 MB / 355.8 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000837/0.4843, allocations: 302.1 kB / 356.1 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.863e-05/0.4844, allocations: 8.438 kB / 356.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001031/0.4855, allocations: 396.7 kB / 356.5 MB, free: 12.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 3.106e-06/0.4855, allocations: 0 / 356.5 MB, free: 12.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.08661/0.5721, allocations: 10.56 MB / 367 MB, free: 2.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.5723, allocations: 137.3 kB / 367.2 MB, free: 1.926 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009052/0.5732, allocations: 456.7 kB / 367.6 MB, free: 1.473 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002869/0.5735, allocations: 49.7 kB / 367.6 MB, free: 1.418 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003893/0.5739, allocations: 375.8 kB / 368 MB, free: 1.043 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004532/0.5744, allocations: 315.5 kB / 368.3 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.5745, allocations: 20 kB / 368.3 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.5748, allocations: 382.8 kB / 368.7 MB, free: 336 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2171/0.7919, allocations: 0.5416 MB / 369.3 MB, free: 88.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002182/0.7941, allocations: 0.7443 MB / 370 MB, free: 88.56 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001969/0.7961, allocations: 0.6254 MB / 370.6 MB, free: 88.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/0.7961, allocations: 2.656 kB / 370.6 MB, free: 88.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.05093/0.8471, allocations: 6.195 MB / 376.8 MB, free: 88.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.553e-05/0.8472, allocations: 65.92 kB / 376.9 MB, free: 88.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.367e-05/0.8472, allocations: 3.906 kB / 376.9 MB, free: 88.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0538/0.9011, allocations: 6.099 MB / 383 MB, free: 87.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/0.9025, allocations: 181.6 kB / 383.2 MB, free: 87.24 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007433/0.9099, allocations: 2.925 MB / 386.1 MB, free: 84.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003821/0.9138, allocations: 302.5 kB / 386.4 MB, free: 84.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002082/0.914, allocations: 47.5 kB / 386.4 MB, free: 84.17 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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.0004117/0.9145, allocations: 158.2 kB / 386.6 MB, free: 84.02 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002321/0.9147, allocations: 80.62 kB / 386.7 MB, free: 83.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03821/0.9529, allocations: 4.757 MB / 391.4 MB, free: 79.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.915e-05/0.953, allocations: 8 kB / 391.4 MB, free: 79.67 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.953, allocations: 0 / 391.4 MB, free: 79.67 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.507e-05/0.953, allocations: 7.984 kB / 391.4 MB, free: 79.66 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002194/0.9552, allocations: 1.262 MB / 392.7 MB, free: 78.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.9553, allocations: 0 / 392.7 MB, free: 78.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.9563, allocations: 119.9 kB / 392.8 MB, free: 78.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05339/1.01, allocations: 6.054 MB / 398.9 MB, free: 72.2 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003118/1.01, allocations: 23.97 kB / 398.9 MB, free: 72.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04032/1.05, allocations: 8.708 MB / 407.6 MB, free: 63.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/1.051, allocations: 0 / 407.6 MB, free: 63.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0404/1.091, allocations: 5.48 MB / 413.1 MB, free: 57.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002812/1.091, allocations: 148.1 kB / 413.2 MB, free: 57.65 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003391/1.092, allocations: 20 kB / 413.3 MB, free: 57.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003576/1.095, allocations: 286.1 kB / 413.5 MB, free: 57.36 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007366/1.096, allocations: 140.6 kB / 413.7 MB, free: 57.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001788/1.096, allocations: 27.97 kB / 413.7 MB, free: 57.19 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005477/1.097, allocations: 341.5 kB / 414 MB, free: 56.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.097, allocations: 0 / 414 MB, free: 56.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001518/1.098, allocations: 337 kB / 414.4 MB, free: 56.54 MB / 314.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.04086/1.139, allocations: 6.064 MB / 420.4 MB, free: 50.45 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.006044/1.145, allocations: 1.655 MB / 422.1 MB, free: 48.77 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/1.145, allocations: 4 kB / 422.1 MB, free: 48.77 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006616/1.152, allocations: 1.262 MB / 423.3 MB, free: 47.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001054/1.153, allocations: 112.8 kB / 423.5 MB, free: 47.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01037/1.164, allocations: 2.038 MB / 425.5 MB, free: 45.33 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/1.164, allocations: 0.9727 MB / 426.5 MB, free: 44.33 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004598/1.164, allocations: 61.17 kB / 426.5 MB, free: 44.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004358/1.165, allocations: 267.3 kB / 426.8 MB, free: 44.01 MB / 314.7 MB Notification: Performance of SimCode: time 8.62e-07/1.165, allocations: 3.938 kB / 426.8 MB, free: 44.01 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0897/1.255, allocations: 35.49 MB / 462.3 MB, free: 8.621 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002306/1.255, allocations: 189.6 kB / 462.5 MB, free: 8.391 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.146/5.401, allocations: 0 / 462.5 MB, free: 8.391 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat