Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.098/2.098, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.099e-05/3.103e-05, allocations: 0 / 292.2 MB, free: 8.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1104, allocations: 50.41 MB / 342.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4658/0.5763, allocations: 83.21 MB / 425.8 MB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002663/0.5766, allocations: 69.95 kB / 425.9 MB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05938/0.636, allocations: 12.67 MB / 438.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6361, allocations: 0 / 438.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.469e-05/0.6361, allocations: 16 kB / 438.6 MB, free: 15.84 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.003848/0.64, allocations: 1.076 MB / 439.7 MB, free: 14.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/0.6401, allocations: 15.91 kB / 439.7 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002323/0.6403, allocations: 103 kB / 439.8 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002598/0.6406, allocations: 93.97 kB / 439.9 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001348/0.6419, allocations: 0.5031 MB / 440.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.73e-05/0.642, allocations: 45.06 kB / 440.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001654/0.6422, allocations: 73.5 kB / 440.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.6437, allocations: 0.5489 MB / 441 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.758e-05/0.6438, allocations: 4 kB / 441.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.6439, allocations: 30.38 kB / 441.1 MB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-05/0.644, allocations: 12 kB / 441.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.6455, allocations: 0.5377 MB / 441.6 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00645/0.652, allocations: 2.34 MB / 444 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.6532, allocations: 463 kB / 444.4 MB, free: 11.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006245/0.6538, allocations: 259.5 kB / 444.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-05/0.6539, allocations: 12.42 kB / 444.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008512/0.6548, allocations: 341 kB / 445 MB, free: 10.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 3.246e-06/0.6548, allocations: 0 / 445 MB, free: 10.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.1117/0.7665, allocations: 13.47 MB / 458.5 MB, free: 14.38 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.7667, allocations: 152.8 kB / 458.6 MB, free: 14.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008811/0.7676, allocations: 454.1 kB / 459.1 MB, free: 13.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002748/0.7679, allocations: 41.7 kB / 459.1 MB, free: 13.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003942/0.7683, allocations: 387.8 kB / 459.5 MB, free: 13.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004253/0.7687, allocations: 315.4 kB / 459.8 MB, free: 13.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.7689, allocations: 20 kB / 459.8 MB, free: 13.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.7691, allocations: 390.7 kB / 460.2 MB, free: 12.63 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001482/0.7706, allocations: 474.3 kB / 460.7 MB, free: 12.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/0.7723, allocations: 0.6919 MB / 461.4 MB, free: 11.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.7738, allocations: 0.5431 MB / 461.9 MB, free: 10.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.889e-06/0.7739, allocations: 8 kB / 461.9 MB, free: 10.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.04528/0.8191, allocations: 4.836 MB / 466.8 MB, free: 5.965 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.202e-05/0.8193, allocations: 67.39 kB / 466.8 MB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.8193, allocations: 8 kB / 466.8 MB, free: 5.879 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06387/0.8832, allocations: 6.918 MB / 473.7 MB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/0.8847, allocations: 183.7 kB / 473.9 MB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007581/0.8923, allocations: 2.665 MB / 476.6 MB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003205/0.8955, allocations: 219.8 kB / 476.8 MB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002126/0.8958, allocations: 55.97 kB / 476.9 MB, free: 11.78 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.0004063/0.8962, allocations: 172.8 kB / 477 MB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002398/0.8964, allocations: 75.06 kB / 477.1 MB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03849/0.9349, allocations: 4.681 MB / 481.8 MB, free: 6.828 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.749e-05/0.935, allocations: 8 kB / 481.8 MB, free: 6.82 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.935, allocations: 0 / 481.8 MB, free: 6.82 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.418e-05/0.9351, allocations: 7.969 kB / 481.8 MB, free: 6.812 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00244/0.9375, allocations: 1.122 MB / 482.9 MB, free: 5.641 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.9376, allocations: 4 kB / 482.9 MB, free: 5.637 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/0.9387, allocations: 123.9 kB / 483 MB, free: 5.516 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06298/1.002, allocations: 6.888 MB / 489.9 MB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002649/1.002, allocations: 27.97 kB / 490 MB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007489/1.009, allocations: 2.682 MB / 492.6 MB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/1.01, allocations: 0 / 492.6 MB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0406/1.05, allocations: 5.325 MB / 498 MB, free: 6.496 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003242/1.051, allocations: 144.2 kB / 498.1 MB, free: 6.336 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003094/1.051, allocations: 20 kB / 498.1 MB, free: 6.316 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002894/1.054, allocations: 215.8 kB / 498.3 MB, free: 6.105 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004449/1.054, allocations: 96.62 kB / 498.4 MB, free: 6.012 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001699/1.054, allocations: 39.91 kB / 498.5 MB, free: 5.973 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006852/1.055, allocations: 349.6 kB / 498.8 MB, free: 5.633 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.055, allocations: 0 / 498.8 MB, free: 5.633 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001261/1.056, allocations: 268 kB / 499.1 MB, free: 5.371 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.04122/1.098, allocations: 5.902 MB / 0.4931 GB, free: 15.42 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006452/1.104, allocations: 1.509 MB / 0.4946 GB, free: 13.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/1.104, allocations: 3.938 kB / 0.4946 GB, free: 13.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004449/1.109, allocations: 0.816 MB / 0.4954 GB, free: 13.08 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/1.11, allocations: 113.9 kB / 0.4955 GB, free: 12.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005075/1.115, allocations: 1.379 MB / 0.4969 GB, free: 11.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007175/1.116, allocations: 0.9666 MB / 0.4978 GB, free: 10.55 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00052/1.116, allocations: 62.27 kB / 0.4979 GB, free: 10.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005458/1.117, allocations: 267.3 kB / 0.4981 GB, free: 10.22 MB / 426.7 MB Notification: Performance of SimCode: time 1.162e-06/1.117, allocations: 0 / 0.4981 GB, free: 10.22 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3747/1.492, allocations: 27.49 MB / 0.525 GB, free: 146.8 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002755/1.492, allocations: 188.8 kB / 0.5252 GB, free: 146.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.727/5.219, allocations: 0 / 0.5252 GB, free: 146.5 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat