Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.128/2.128, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.176e-05/3.183e-05, allocations: 4 kB / 292.7 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 50.42 MB / 343.2 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4692/0.5822, allocations: 83.2 MB / 426.4 MB, free: 10.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/0.5825, allocations: 69.08 kB / 426.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06019/0.6427, allocations: 12.67 MB / 439.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.165e-06/0.6428, allocations: 0 / 439.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.902e-05/0.6428, allocations: 20 kB / 439.1 MB, free: 15.75 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.004431/0.6473, allocations: 1.076 MB / 440.2 MB, free: 14.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.6474, allocations: 11.97 kB / 440.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002949/0.6477, allocations: 108.5 kB / 440.3 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003189/0.648, allocations: 90.97 kB / 440.4 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001548/0.6496, allocations: 0.4911 MB / 440.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.324e-05/0.6497, allocations: 49.94 kB / 440.9 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002058/0.6499, allocations: 67.58 kB / 441 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001727/0.6516, allocations: 0.5614 MB / 441.6 MB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.727e-05/0.6517, allocations: 0 / 441.6 MB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.6519, allocations: 28.56 kB / 441.6 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.6519, allocations: 12 kB / 441.6 MB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001665/0.6536, allocations: 0.5387 MB / 442.1 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007442/0.661, allocations: 2.344 MB / 444.5 MB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.6624, allocations: 463.9 kB / 444.9 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006679/0.6631, allocations: 253.5 kB / 445.2 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.15e-05/0.6632, allocations: 11.31 kB / 445.2 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000925/0.6642, allocations: 346 kB / 445.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 3.436e-06/0.6642, allocations: 4 kB / 445.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.1159/0.7801, allocations: 13.47 MB / 459 MB, free: 14.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/0.7802, allocations: 148.2 kB / 459.2 MB, free: 14.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008871/0.7811, allocations: 453.8 kB / 459.6 MB, free: 13.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002686/0.7814, allocations: 41.7 kB / 459.6 MB, free: 13.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003899/0.7818, allocations: 391.8 kB / 460 MB, free: 13.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004167/0.7823, allocations: 315.4 kB / 460.3 MB, free: 12.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.7824, allocations: 24 kB / 460.4 MB, free: 12.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001984/0.7826, allocations: 386.8 kB / 460.7 MB, free: 12.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001518/0.7842, allocations: 474.3 kB / 461.2 MB, free: 12.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0017/0.7859, allocations: 0.6919 MB / 461.9 MB, free: 11.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001538/0.7874, allocations: 0.547 MB / 462.4 MB, free: 10.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.7875, allocations: 4 kB / 462.4 MB, free: 10.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.04058/0.828, allocations: 4.836 MB / 467.3 MB, free: 5.906 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/0.8282, allocations: 67.39 kB / 467.3 MB, free: 5.828 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.19e-05/0.8282, allocations: 8 kB / 467.3 MB, free: 5.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06732/0.8956, allocations: 6.915 MB / 474.3 MB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001469/0.8971, allocations: 191.6 kB / 474.5 MB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008138/0.9053, allocations: 2.662 MB / 477.1 MB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003469/0.9089, allocations: 231.8 kB / 477.3 MB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002589/0.9092, allocations: 47.97 kB / 477.4 MB, free: 11.71 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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.0004235/0.9096, allocations: 164.7 kB / 477.5 MB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000276/0.9099, allocations: 75.06 kB / 477.6 MB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0403/0.9502, allocations: 4.685 MB / 482.3 MB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-05/0.9503, allocations: 8 kB / 482.3 MB, free: 6.762 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.9503, allocations: 0 / 482.3 MB, free: 6.762 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.431e-05/0.9504, allocations: 7.969 kB / 482.3 MB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002731/0.9531, allocations: 1.126 MB / 483.4 MB, free: 5.578 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.891e-05/0.9532, allocations: 0 / 483.4 MB, free: 5.578 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.9544, allocations: 123.9 kB / 483.6 MB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07031/1.025, allocations: 6.884 MB / 490.5 MB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003371/1.025, allocations: 27.97 kB / 490.5 MB, free: 14.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009875/1.035, allocations: 2.686 MB / 493.2 MB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/1.035, allocations: 0 / 493.2 MB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07809/1.113, allocations: 5.325 MB / 498.5 MB, free: 6.434 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003334/1.114, allocations: 144.2 kB / 498.6 MB, free: 6.273 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002982/1.114, allocations: 20 kB / 498.6 MB, free: 6.254 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003043/1.117, allocations: 211.8 kB / 498.9 MB, free: 6.047 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004587/1.117, allocations: 104.7 kB / 499 MB, free: 5.945 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001711/1.118, allocations: 35.97 kB / 499 MB, free: 5.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006749/1.118, allocations: 345.6 kB / 499.3 MB, free: 5.574 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.118, allocations: 0 / 499.3 MB, free: 5.574 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001407/1.12, allocations: 268 kB / 499.6 MB, free: 5.312 MB / 410.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.04398/1.164, allocations: 5.901 MB / 0.4936 GB, free: 15.37 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01085/1.175, allocations: 1.505 MB / 0.4951 GB, free: 13.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/1.175, allocations: 448 / 0.4951 GB, free: 13.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006853/1.182, allocations: 0.8276 MB / 0.4959 GB, free: 13.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0018/1.184, allocations: 113.9 kB / 0.496 GB, free: 12.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007527/1.191, allocations: 1.379 MB / 0.4974 GB, free: 11.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009416/1.192, allocations: 0.9666 MB / 0.4983 GB, free: 10.48 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008145/1.193, allocations: 62.27 kB / 0.4984 GB, free: 10.42 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000752/1.194, allocations: 267.3 kB / 0.4986 GB, free: 10.16 MB / 426.7 MB Notification: Performance of SimCode: time 1.804e-06/1.194, allocations: 0 / 0.4986 GB, free: 10.16 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.371/1.565, allocations: 27.48 MB / 0.5255 GB, free: 146.7 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001954/1.565, allocations: 187.1 kB / 0.5257 GB, free: 146.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.969/5.534, allocations: 0 / 0.5257 GB, free: 146.5 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat