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.235/2.235, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.544e-05/3.578e-05, allocations: 7.984 kB / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1003, allocations: 44.52 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4079/0.5083, allocations: 76.63 MB / 376.6 MB, free: 12.92 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.5086, allocations: 72.16 kB / 376.6 MB, free: 12.92 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07256/0.5812, allocations: 13.86 MB / 390.5 MB, free: 11.61 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5812, allocations: 1.094 kB / 390.5 MB, free: 11.61 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.162e-05/0.5813, allocations: 15.41 kB / 390.5 MB, free: 11.61 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.006296/0.5876, allocations: 1.327 MB / 391.8 MB, free: 10.97 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.5877, allocations: 7.844 kB / 391.8 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004091/0.5881, allocations: 113.9 kB / 392 MB, free: 10.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003153/0.5884, allocations: 88.83 kB / 392 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002107/0.5905, allocations: 0.5756 MB / 392.6 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.329e-05/0.5906, allocations: 47.98 kB / 392.7 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002238/0.5909, allocations: 68.34 kB / 392.7 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/0.5926, allocations: 0.6196 MB / 393.4 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.235e-05/0.5927, allocations: 0 / 393.4 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001122/0.5928, allocations: 24.44 kB / 393.4 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.5928, allocations: 15.59 kB / 393.4 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001742/0.5946, allocations: 0.6281 MB / 394 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006618/0.6012, allocations: 2.35 MB / 396.4 MB, free: 9.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/0.6026, allocations: 0.5013 MB / 396.9 MB, free: 9.801 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007189/0.6034, allocations: 295.4 kB / 397.2 MB, free: 9.793 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.544e-05/0.6035, allocations: 15.69 kB / 397.2 MB, free: 9.793 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009751/0.6045, allocations: 403.6 kB / 397.6 MB, free: 9.699 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 3.456e-06/0.6045, allocations: 0 / 397.6 MB, free: 9.699 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.08076/0.6853, allocations: 10.53 MB / 408.1 MB, free: 6.973 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.685e-05/0.6854, allocations: 140.9 kB / 408.2 MB, free: 6.812 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007592/0.6862, allocations: 446 kB / 408.7 MB, free: 6.656 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003121/0.6865, allocations: 44.11 kB / 408.7 MB, free: 6.625 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002525/0.6868, allocations: 404.2 kB / 409.1 MB, free: 6.336 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003832/0.6872, allocations: 319.7 kB / 409.4 MB, free: 6.109 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.6873, allocations: 17.41 kB / 409.4 MB, free: 6.109 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.382e-05/0.6874, allocations: 357.1 kB / 409.8 MB, free: 5.781 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001547/0.689, allocations: 0.5392 MB / 410.3 MB, free: 5.773 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00171/0.6907, allocations: 0.7582 MB / 411.1 MB, free: 5.527 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001583/0.6924, allocations: 0.6142 MB / 411.7 MB, free: 5.395 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.6924, allocations: 0 / 411.7 MB, free: 5.395 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.04963/0.742, allocations: 6.148 MB / 417.8 MB, free: 3.316 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.7422, allocations: 66.95 kB / 417.9 MB, free: 3.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.7422, allocations: 3.844 kB / 417.9 MB, free: 3.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05312/0.7954, allocations: 6.063 MB / 424 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.7968, allocations: 189.5 kB / 424.2 MB, free: 1.105 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007624/0.8044, allocations: 2.898 MB / 427.1 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003801/0.8083, allocations: 299.3 kB / 427.4 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002247/0.8085, allocations: 45.61 kB / 427.4 MB, free: 15.78 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.0004333/0.809, allocations: 165.4 kB / 427.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002544/0.8092, allocations: 81.89 kB / 427.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03905/0.8483, allocations: 4.745 MB / 432.4 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.099e-05/0.8484, allocations: 8 kB / 432.4 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/0.8484, allocations: 0 / 432.4 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.235e-05/0.8485, allocations: 7.984 kB / 432.4 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002724/0.8512, allocations: 1.26 MB / 433.7 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.388e-06/0.8512, allocations: 0 / 433.7 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.8523, allocations: 133 kB / 433.8 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05473/0.9071, allocations: 6.03 MB / 439.8 MB, free: 5.414 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000359/0.9075, allocations: 19.98 kB / 439.8 MB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04319/0.9507, allocations: 8.64 MB / 448.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.9508, allocations: 256 / 448.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04251/0.9933, allocations: 5.462 MB / 453.9 MB, free: 7.113 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001032/0.9944, allocations: 284 kB / 454.2 MB, free: 6.816 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003129/0.9947, allocations: 23.95 kB / 454.2 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003729/0.9985, allocations: 287.7 kB / 454.5 MB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008694/0.9994, allocations: 140.6 kB / 454.7 MB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001965/0.9996, allocations: 27.98 kB / 454.7 MB, free: 6.344 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007255/1, allocations: 337.6 kB / 455 MB, free: 6.016 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1, allocations: 0 / 455 MB, free: 6.016 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001793/1.002, allocations: 335.9 kB / 455.3 MB, free: 5.688 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.04296/1.045, allocations: 6.049 MB / 461.4 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006683/1.052, allocations: 1.664 MB / 463.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/1.052, allocations: 0 / 463.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007194/1.059, allocations: 1.288 MB / 464.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/1.06, allocations: 110 kB / 464.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01133/1.072, allocations: 2.066 MB / 466.5 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006672/1.073, allocations: 0.9705 MB / 467.5 MB, free: 9.391 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006184/1.073, allocations: 263.3 kB / 467.7 MB, free: 9.133 MB / 362.7 MB Notification: Performance of SimCode: time 1.633e-06/1.073, allocations: 4 kB / 467.8 MB, free: 9.129 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.246/4.319, allocations: 21.2 MB / 489 MB, free: 3.914 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