Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.425/2.425, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.796e-05/2.803e-05, allocations: 4.125 kB / 249.8 MB, free: 5.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1043, allocations: 44.5 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4954/0.5998, allocations: 75.97 MB / 370.3 MB, free: 7.195 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/0.6001, allocations: 69.56 kB / 370.3 MB, free: 7.195 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07814/0.6783, allocations: 13.75 MB / 384.1 MB, free: 19.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.6783, allocations: 0 / 384.1 MB, free: 19.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.747e-05/0.6784, allocations: 11.59 kB / 384.1 MB, free: 19.77 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.007183/0.6856, allocations: 1.323 MB / 385.4 MB, free: 18.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/0.6857, allocations: 15.81 kB / 385.4 MB, free: 18.92 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005024/0.6862, allocations: 93.67 kB / 385.5 MB, free: 18.87 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00246/0.6887, allocations: 0.5775 MB / 386.1 MB, free: 18.49 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.356e-05/0.6888, allocations: 23.28 kB / 386.1 MB, free: 18.49 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002427/0.689, allocations: 38.78 kB / 386.2 MB, free: 18.49 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00193/0.691, allocations: 0.5963 MB / 386.8 MB, free: 18.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/0.6927, allocations: 0.5368 MB / 387.3 MB, free: 18.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.524e-05/0.6928, allocations: 0 / 387.3 MB, free: 18.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001172/0.6929, allocations: 3.938 kB / 387.3 MB, free: 18.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/0.6929, allocations: 19.42 kB / 387.3 MB, free: 18.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007538/0.7005, allocations: 2.234 MB / 389.5 MB, free: 17.2 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/0.7019, allocations: 0.491 MB / 390 MB, free: 17.14 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007525/0.7027, allocations: 276.5 kB / 390.3 MB, free: 17.13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.333e-05/0.7028, allocations: 11.53 kB / 390.3 MB, free: 17.13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009906/0.7038, allocations: 383.6 kB / 390.7 MB, free: 16.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 4.047e-06/0.7039, allocations: 0 / 390.7 MB, free: 16.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.09817/0.8021, allocations: 10.34 MB / 401 MB, free: 13.5 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.8022, allocations: 144.9 kB / 401.2 MB, free: 13.34 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008245/0.8031, allocations: 410.4 kB / 401.6 MB, free: 13.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003333/0.8034, allocations: 25.7 kB / 401.6 MB, free: 13.15 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004085/0.8039, allocations: 385.2 kB / 402 MB, free: 12.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008885/0.8048, allocations: 299.3 kB / 402.3 MB, free: 12.69 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003063/0.8051, allocations: 0 / 402.3 MB, free: 12.69 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003842/0.8055, allocations: 391 kB / 402.7 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0027/0.8082, allocations: 0.5227 MB / 403.2 MB, free: 12.33 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003082/0.8114, allocations: 0.7283 MB / 403.9 MB, free: 12.1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003263/0.8147, allocations: 0.5753 MB / 404.5 MB, free: 12.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-05/0.8148, allocations: 0 / 404.5 MB, free: 12.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.06908/0.8839, allocations: 6.037 MB / 410.5 MB, free: 7.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000135/0.8841, allocations: 67.08 kB / 410.6 MB, free: 7.105 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.978e-05/0.8842, allocations: 8 kB / 410.6 MB, free: 7.098 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06531/0.9495, allocations: 5.955 MB / 416.5 MB, free: 1.527 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001711/0.9513, allocations: 179 kB / 416.7 MB, free: 1.355 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01091/0.9622, allocations: 3.159 MB / 419.9 MB, free: 15.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004788/0.9671, allocations: 271.2 kB / 420.1 MB, free: 14.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003926/0.9675, allocations: 47.22 kB / 420.2 MB, free: 14.78 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.T2.vbc:DUMMY_DER(fixed = false ) type: Real $DER.T1.vbe:DUMMY_DER(fixed = false ) type: Real $DER.T1.vbc:DUMMY_DER(fixed = false ) type: Real $DER.T1.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real $DER.T2.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real 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.0006744/0.9682, allocations: 140.2 kB / 420.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.07469/1.043, allocations: 5.014 MB / 425.3 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007136/1.044, allocations: 83.02 kB / 425.4 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06016/1.104, allocations: 4.648 MB / 430.1 MB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-05/1.104, allocations: 12 kB / 430.1 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/1.104, allocations: 0 / 430.1 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.766e-05/1.104, allocations: 7.938 kB / 430.1 MB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003302/1.107, allocations: 1.16 MB / 431.3 MB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/1.107, allocations: 0 / 431.3 MB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001436/1.109, allocations: 127.9 kB / 431.4 MB, free: 4.059 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06681/1.176, allocations: 5.955 MB / 437.3 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003718/1.176, allocations: 11.97 kB / 437.3 MB, free: 14.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05036/1.227, allocations: 8.643 MB / 446 MB, free: 5.297 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/1.227, allocations: 0 / 446 MB, free: 5.297 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04912/1.276, allocations: 5.381 MB / 451.4 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/1.277, allocations: 283.9 kB / 451.6 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003736/1.277, allocations: 11.95 kB / 451.7 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004162/1.281, allocations: 263.8 kB / 451.9 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009442/1.282, allocations: 136.6 kB / 452 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002301/1.283, allocations: 31.97 kB / 452.1 MB, free: 15.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007088/1.283, allocations: 307 kB / 452.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.283, allocations: 0 / 452.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001848/1.285, allocations: 292 kB / 452.7 MB, free: 14.58 MB / 362.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.05001/1.335, allocations: 5.938 MB / 458.6 MB, free: 8.609 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007965/1.343, allocations: 1.612 MB / 460.2 MB, free: 6.977 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/1.343, allocations: 7.938 kB / 460.2 MB, free: 6.969 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008468/1.352, allocations: 1.245 MB / 461.5 MB, free: 5.715 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/1.353, allocations: 82.05 kB / 461.5 MB, free: 5.637 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01319/1.366, allocations: 1.939 MB / 463.5 MB, free: 3.648 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008302/1.367, allocations: 0.9743 MB / 464.5 MB, free: 2.648 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006307/1.368, allocations: 58.06 kB / 464.5 MB, free: 2.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006943/1.369, allocations: 263.3 kB / 464.8 MB, free: 2.332 MB / 362.7 MB Notification: Performance of SimCode: time 6.071e-06/1.369, allocations: 0 / 464.8 MB, free: 2.332 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1353/1.504, allocations: 33.27 MB / 498 MB, free: 1.078 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002895/1.504, allocations: 146.4 kB / 498.2 MB, free: 0.8867 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.441/6.945, allocations: 0 / 498.2 MB, free: 0.8867 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat