Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.913/1.913, allocations: 194.9 MB / 202.5 MB, free: 6.926 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2083/2.122, allocations: 46.82 MB / 249.3 MB, free: 5.352 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08753/2.209, allocations: 44.5 MB / 293.8 MB, free: 10.95 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2773/2.487, allocations: 75.92 MB / 369.8 MB, free: 7.102 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/2.487, allocations: 63.53 kB / 369.8 MB, free: 7.102 MB / 298.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.07692/2.564, allocations: 15.1 MB / 384.9 MB, free: 3.094 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/2.564, allocations: 7.625 kB / 384.9 MB, free: 3.094 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004406/2.564, allocations: 89.56 kB / 385 MB, free: 3.051 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002225/2.567, allocations: 0.587 MB / 385.6 MB, free: 2.668 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.942e-05/2.567, allocations: 19.34 kB / 385.6 MB, free: 2.668 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001936/2.567, allocations: 45.48 kB / 385.7 MB, free: 2.664 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001865/2.569, allocations: 0.5917 MB / 386.3 MB, free: 2.637 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/2.57, allocations: 0.5278 MB / 386.8 MB, free: 2.508 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.055e-05/2.57, allocations: 3.875 kB / 386.8 MB, free: 2.508 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000108/2.571, allocations: 7.219 kB / 386.8 MB, free: 2.504 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.832e-05/2.571, allocations: 19.5 kB / 386.8 MB, free: 2.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007176/2.578, allocations: 2.569 MB / 389.4 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/2.579, allocations: 458.8 kB / 389.8 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007138/2.58, allocations: 278.7 kB / 390.1 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.186e-05/2.58, allocations: 11.38 kB / 390.1 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008902/2.581, allocations: 362.5 kB / 390.5 MB, free: 16.78 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 3.326e-06/2.581, allocations: 4 kB / 390.5 MB, free: 16.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.09495/2.676, allocations: 10.61 MB / 401.1 MB, free: 13.19 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/2.676, allocations: 143.6 kB / 401.2 MB, free: 13.03 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008673/2.677, allocations: 409.2 kB / 401.6 MB, free: 12.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002852/2.677, allocations: 32.09 kB / 401.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003078/2.677, allocations: 307.7 kB / 402 MB, free: 12.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004602/2.678, allocations: 298 kB / 402.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/2.678, allocations: 0.5 kB / 402.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002068/2.678, allocations: 390 kB / 402.6 MB, free: 12.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001826/2.68, allocations: 0.5255 MB / 403.2 MB, free: 12.03 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001961/2.682, allocations: 0.7301 MB / 403.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002045/2.684, allocations: 0.5655 MB / 404.5 MB, free: 11.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.789e-06/2.684, allocations: 1.781 kB / 404.5 MB, free: 11.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.05966/2.744, allocations: 6.167 MB / 410.6 MB, free: 6.586 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/2.744, allocations: 4 kB / 410.6 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.229e-05/2.744, allocations: 4 kB / 410.6 MB, free: 6.578 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06101/2.805, allocations: 6.12 MB / 416.7 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/2.807, allocations: 197.3 kB / 416.9 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01072/2.817, allocations: 3.301 MB / 420.2 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004334/2.822, allocations: 299.9 kB / 420.5 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002753/2.822, allocations: 49.47 kB / 420.6 MB, free: 13.91 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.0005278/2.823, allocations: 140.5 kB / 420.7 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003234/2.823, allocations: 79.06 kB / 420.8 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04526/2.868, allocations: 4.742 MB / 425.5 MB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-05/2.868, allocations: 15.94 kB / 425.6 MB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/2.868, allocations: 0 / 425.6 MB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.042e-05/2.868, allocations: 3.984 kB / 425.6 MB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002672/2.871, allocations: 1.149 MB / 426.7 MB, free: 8.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/2.871, allocations: 0 / 426.7 MB, free: 8.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/2.872, allocations: 143.9 kB / 426.9 MB, free: 8.289 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06102/2.934, allocations: 6.123 MB / 433 MB, free: 2.152 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000341/2.934, allocations: 15.97 kB / 433 MB, free: 2.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04858/2.982, allocations: 8.618 MB / 441.6 MB, free: 9.375 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.687e-06/2.983, allocations: 4 kB / 441.6 MB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0478/3.03, allocations: 5.483 MB / 447.1 MB, free: 3.875 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0505/3.081, allocations: 6.688 MB / 453.8 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/3.082, allocations: 284 kB / 454.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003725/3.082, allocations: 4.234 kB / 454.1 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004076/3.086, allocations: 295.8 kB / 454.4 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005163/3.087, allocations: 100.6 kB / 454.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002285/3.087, allocations: 27.97 kB / 454.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0006276/3.088, allocations: 307 kB / 454.8 MB, free: 12.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002629/3.091, allocations: 288 kB / 455.1 MB, free: 11.88 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.0004625/3.091, allocations: 127.6 kB / 455.2 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007141/3.098, allocations: 1.564 MB / 456.7 MB, free: 10.17 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/3.098, allocations: 4 kB / 456.8 MB, free: 10.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007584/3.106, allocations: 1.157 MB / 457.9 MB, free: 8.996 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/3.107, allocations: 90.02 kB / 458 MB, free: 8.906 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01312/3.12, allocations: 2.1 MB / 460.1 MB, free: 6.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/3.121, allocations: 1.004 MB / 461.1 MB, free: 5.789 MB / 362.7 MB Notification: Performance of SimCode: time 1.342e-06/3.121, allocations: 0 / 461.1 MB, free: 5.789 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat