Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.786/1.786, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.418e-05/3.432e-05, allocations: 4 kB / 225.1 MB, free: 2.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2704, allocations: 38.77 MB / 263.8 MB, free: 9.773 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.144/0.4144, allocations: 71.5 MB / 335.3 MB, free: 2.168 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003307/0.4148, allocations: 71.95 kB / 335.4 MB, free: 2.098 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08758/0.5024, allocations: 13.94 MB / 349.3 MB, free: 4.102 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.5025, allocations: 4 kB / 349.3 MB, free: 4.098 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.072e-05/0.5026, allocations: 12 kB / 349.4 MB, free: 4.086 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.006846/0.5094, allocations: 1.331 MB / 350.7 MB, free: 2.691 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.5095, allocations: 12.02 kB / 350.7 MB, free: 2.68 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003963/0.5099, allocations: 98.52 kB / 350.8 MB, free: 2.574 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003368/0.5103, allocations: 90.91 kB / 350.9 MB, free: 2.484 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002549/0.5128, allocations: 0.5913 MB / 351.5 MB, free: 1.852 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.513, allocations: 45.31 kB / 351.5 MB, free: 1.809 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003234/0.5133, allocations: 64 kB / 351.6 MB, free: 1.746 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002077/0.5154, allocations: 0.6196 MB / 352.2 MB, free: 1.121 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.936e-05/0.5155, allocations: 3.938 kB / 352.2 MB, free: 1.117 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001457/0.5156, allocations: 24 kB / 352.2 MB, free: 1.094 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.5157, allocations: 12 kB / 352.2 MB, free: 1.082 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002242/0.5179, allocations: 0.6339 MB / 352.9 MB, free: 456 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008202/0.5262, allocations: 2.369 MB / 355.2 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001675/0.5279, allocations: 0.4971 MB / 355.7 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009017/0.5289, allocations: 294.2 kB / 356 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.838e-05/0.529, allocations: 16.41 kB / 356 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00121/0.5302, allocations: 397.5 kB / 356.4 MB, free: 12.76 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 4.769e-06/0.5303, allocations: 0 / 356.4 MB, free: 12.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.09282/0.6231, allocations: 10.57 MB / 367 MB, free: 2.113 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.6233, allocations: 145.3 kB / 367.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009347/0.6243, allocations: 448.8 kB / 367.6 MB, free: 1.504 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002959/0.6246, allocations: 45.7 kB / 367.6 MB, free: 1.453 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003794/0.625, allocations: 410.3 kB / 368 MB, free: 1.047 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004459/0.6254, allocations: 319.4 kB / 368.3 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/0.6256, allocations: 24 kB / 368.4 MB, free: 0.707 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.6258, allocations: 346.8 kB / 368.7 MB, free: 368 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.225/0.8508, allocations: 0.5376 MB / 369.2 MB, free: 88.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002311/0.8532, allocations: 0.7544 MB / 370 MB, free: 88.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002049/0.8553, allocations: 0.6204 MB / 370.6 MB, free: 88.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.337e-05/0.8553, allocations: 1.812 kB / 370.6 MB, free: 88.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.04968/0.905, allocations: 6.162 MB / 376.8 MB, free: 88.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.997e-05/0.9052, allocations: 70.64 kB / 376.8 MB, free: 88.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.9052, allocations: 7.109 kB / 376.8 MB, free: 88.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06986/0.9751, allocations: 6.099 MB / 382.9 MB, free: 87.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/0.9769, allocations: 176.2 kB / 383.1 MB, free: 87.24 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.9877, allocations: 2.937 MB / 386.1 MB, free: 84.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00415/0.9919, allocations: 291.4 kB / 386.3 MB, free: 84.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001989/0.9921, allocations: 47.12 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.0004105/0.9926, allocations: 164 kB / 386.5 MB, free: 84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002298/0.9928, allocations: 79.38 kB / 386.6 MB, free: 83.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03707/1.03, allocations: 4.758 MB / 391.4 MB, free: 79.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.858e-05/1.03, allocations: 8 kB / 391.4 MB, free: 79.69 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/1.03, allocations: 0 / 391.4 MB, free: 79.69 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.522e-05/1.03, allocations: 3.984 kB / 391.4 MB, free: 79.69 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/1.032, allocations: 1.263 MB / 392.7 MB, free: 78.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/1.032, allocations: 0.9375 kB / 392.7 MB, free: 78.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/1.033, allocations: 127.9 kB / 392.8 MB, free: 78.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05167/1.085, allocations: 6.047 MB / 398.8 MB, free: 72.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003079/1.085, allocations: 27.97 kB / 398.9 MB, free: 72.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03942/1.125, allocations: 8.689 MB / 407.5 MB, free: 63.38 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/1.125, allocations: 7.953 kB / 407.6 MB, free: 63.37 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0393/1.164, allocations: 5.48 MB / 413 MB, free: 57.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002786/1.165, allocations: 147.2 kB / 413.2 MB, free: 57.7 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002834/1.165, allocations: 19.98 kB / 413.2 MB, free: 57.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003395/1.168, allocations: 287.7 kB / 413.5 MB, free: 57.4 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007293/1.169, allocations: 138.7 kB / 413.6 MB, free: 57.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001677/1.169, allocations: 27.98 kB / 413.6 MB, free: 57.24 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005522/1.17, allocations: 345.6 kB / 414 MB, free: 56.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.7e-07/1.17, allocations: 0 / 414 MB, free: 56.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001395/1.171, allocations: 332.9 kB / 414.3 MB, free: 56.59 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.03972/1.211, allocations: 6.063 MB / 420.4 MB, free: 50.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005993/1.217, allocations: 1.676 MB / 422 MB, free: 48.8 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/1.217, allocations: 4 kB / 422 MB, free: 48.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006341/1.223, allocations: 1.279 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.0009607/1.224, allocations: 108.5 kB / 423.4 MB, free: 47.4 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01006/1.234, allocations: 2.071 MB / 425.5 MB, free: 45.3 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004167/1.235, allocations: 0.9704 MB / 426.5 MB, free: 44.3 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005393/1.236, allocations: 275.3 kB / 426.7 MB, free: 44.03 MB / 314.7 MB Notification: Performance of SimCode: time 1.132e-06/1.236, allocations: 0 / 426.7 MB, free: 44.03 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.135/4.371, allocations: 21.37 MB / 448.1 MB, free: 22.73 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat