Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.098/2.098, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.209e-05/3.216e-05, allocations: 3.984 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09347/0.09353, allocations: 44.51 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4183/0.5119, allocations: 76.64 MB / 376.6 MB, free: 12.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003201/0.5122, allocations: 71.7 kB / 376.7 MB, free: 12.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08428/0.5966, allocations: 13.86 MB / 390.5 MB, free: 11.19 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.5966, allocations: 4.891 kB / 390.5 MB, free: 11.19 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.183e-05/0.5967, allocations: 11.66 kB / 390.5 MB, free: 11.19 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.006394/0.6031, allocations: 1.327 MB / 391.9 MB, free: 10.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.6031, allocations: 7.75 kB / 391.9 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004152/0.6036, allocations: 106.5 kB / 392 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003517/0.6039, allocations: 104.9 kB / 392.1 MB, free: 10.45 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002229/0.6062, allocations: 0.5693 MB / 392.7 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.218e-05/0.6063, allocations: 49.19 kB / 392.7 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002407/0.6065, allocations: 66.5 kB / 392.8 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00175/0.6083, allocations: 0.611 MB / 393.4 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.148e-05/0.6084, allocations: 0 / 393.4 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.6085, allocations: 27.09 kB / 393.4 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/0.6085, allocations: 15.5 kB / 393.4 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001708/0.6102, allocations: 0.6206 MB / 394 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006653/0.6169, allocations: 2.35 MB / 396.4 MB, free: 9.418 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/0.6184, allocations: 0.4886 MB / 396.9 MB, free: 9.387 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007262/0.6191, allocations: 298.2 kB / 397.2 MB, free: 9.375 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.991e-05/0.6192, allocations: 8.156 kB / 397.2 MB, free: 9.375 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009442/0.6202, allocations: 405.6 kB / 397.6 MB, free: 9.281 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 3.847e-06/0.6202, allocations: 0 / 397.6 MB, free: 9.281 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.0822/0.7024, allocations: 10.52 MB / 408.1 MB, free: 6.551 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.026e-05/0.7025, allocations: 144.9 kB / 408.2 MB, free: 6.387 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007519/0.7033, allocations: 445.9 kB / 408.7 MB, free: 6.234 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002971/0.7036, allocations: 45.2 kB / 408.7 MB, free: 6.203 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002535/0.7039, allocations: 404.6 kB / 409.1 MB, free: 5.918 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003544/0.7043, allocations: 316.8 kB / 409.4 MB, free: 5.691 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/0.7044, allocations: 24.97 kB / 409.4 MB, free: 5.688 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.913e-05/0.7045, allocations: 348.6 kB / 409.8 MB, free: 5.359 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001577/0.7061, allocations: 0.5456 MB / 410.3 MB, free: 5.344 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/0.7078, allocations: 0.7513 MB / 411.1 MB, free: 5.105 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001611/0.7095, allocations: 0.6131 MB / 411.7 MB, free: 4.977 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/0.7095, allocations: 3.719 kB / 411.7 MB, free: 4.977 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.04972/0.7592, allocations: 6.132 MB / 417.8 MB, free: 2.898 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.993e-05/0.7594, allocations: 61.94 kB / 417.9 MB, free: 2.836 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.859e-05/0.7594, allocations: 11.7 kB / 417.9 MB, free: 2.832 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05328/0.8127, allocations: 6.061 MB / 424 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.8141, allocations: 177.5 kB / 424.1 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007864/0.822, allocations: 2.91 MB / 427 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00398/0.8261, allocations: 290.9 kB / 427.3 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003127/0.8264, allocations: 50.53 kB / 427.4 MB, free: 15.36 MB / 330.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.0004467/0.8269, allocations: 160.9 kB / 427.5 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003168/0.8272, allocations: 77.53 kB / 427.6 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03939/0.8666, allocations: 4.75 MB / 432.4 MB, free: 11.97 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.478e-05/0.8667, allocations: 8 kB / 432.4 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.8667, allocations: 4 kB / 432.4 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-05/0.8668, allocations: 3.984 kB / 432.4 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002818/0.8696, allocations: 1.257 MB / 433.6 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.8697, allocations: 4 kB / 433.6 MB, free: 11.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001132/0.8708, allocations: 127.1 kB / 433.8 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0553/0.9261, allocations: 6.027 MB / 439.8 MB, free: 5.242 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003813/0.9266, allocations: 32.28 kB / 439.8 MB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04331/0.9699, allocations: 8.638 MB / 448.5 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.97, allocations: 0 / 448.5 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04217/1.012, allocations: 5.468 MB / 453.9 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009467/1.013, allocations: 284 kB / 454.2 MB, free: 6.746 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003063/1.014, allocations: 23.95 kB / 454.2 MB, free: 6.723 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003674/1.017, allocations: 279.8 kB / 454.5 MB, free: 6.449 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008069/1.018, allocations: 140.5 kB / 454.6 MB, free: 6.309 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001977/1.018, allocations: 31.97 kB / 454.7 MB, free: 6.277 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006789/1.019, allocations: 333.6 kB / 455 MB, free: 5.949 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.019, allocations: 0 / 455 MB, free: 5.949 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001706/1.021, allocations: 339.9 kB / 455.3 MB, free: 5.617 MB / 346.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.04283/1.064, allocations: 6.038 MB / 461.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006967/1.071, allocations: 1.657 MB / 463 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/1.071, allocations: 0 / 463 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007347/1.078, allocations: 1.27 MB / 464.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/1.079, allocations: 120.8 kB / 464.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01159/1.091, allocations: 2.055 MB / 466.5 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006659/1.092, allocations: 0.9666 MB / 467.4 MB, free: 9.383 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000683/1.092, allocations: 271.3 kB / 467.7 MB, free: 9.117 MB / 362.7 MB Notification: Performance of SimCode: time 1.443e-06/1.092, allocations: 0 / 467.7 MB, free: 9.117 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.04/4.132, allocations: 21.18 MB / 488.9 MB, free: 3.918 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat