Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.668/1.668, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2452/1.913, allocations: 46.82 MB / 249.4 MB, free: 5.309 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08883/2.002, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2823/2.285, allocations: 75.91 MB / 369.8 MB, free: 7.129 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/2.285, allocations: 69.97 kB / 369.9 MB, free: 7.129 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.08032/2.365, allocations: 15.1 MB / 385 MB, free: 3.105 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/2.365, allocations: 7.656 kB / 385 MB, free: 3.105 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003035/2.366, allocations: 89.88 kB / 385.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002192/2.368, allocations: 0.5925 MB / 385.7 MB, free: 2.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.522e-05/2.368, allocations: 19.47 kB / 385.7 MB, free: 2.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001773/2.368, allocations: 34.91 kB / 385.7 MB, free: 2.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001938/2.37, allocations: 0.5997 MB / 386.3 MB, free: 2.648 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001581/2.372, allocations: 0.535 MB / 386.9 MB, free: 2.516 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.887e-05/2.372, allocations: 0 / 386.9 MB, free: 2.516 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/2.372, allocations: 3.906 kB / 386.9 MB, free: 2.512 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/2.372, allocations: 19.34 kB / 386.9 MB, free: 2.508 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006866/2.379, allocations: 2.573 MB / 389.5 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/2.38, allocations: 448.1 kB / 389.9 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007518/2.381, allocations: 281 kB / 390.2 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.584e-05/2.381, allocations: 19.27 kB / 390.2 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008834/2.382, allocations: 363.7 kB / 390.5 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 3.937e-06/2.382, allocations: 3.984 kB / 390.5 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.1025/2.484, allocations: 10.61 MB / 401.2 MB, free: 13.2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/2.485, allocations: 140 kB / 401.3 MB, free: 13.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009336/2.485, allocations: 407.8 kB / 401.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002826/2.486, allocations: 27.95 kB / 401.7 MB, free: 12.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003419/2.486, allocations: 313 kB / 402 MB, free: 12.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004799/2.487, allocations: 298.9 kB / 402.3 MB, free: 12.39 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/2.487, allocations: 0 / 402.3 MB, free: 12.39 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002659/2.487, allocations: 391.6 kB / 402.7 MB, free: 12.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002002/2.489, allocations: 0.5194 MB / 403.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002078/2.491, allocations: 0.7296 MB / 404 MB, free: 11.8 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002161/2.493, allocations: 0.5643 MB / 404.5 MB, free: 11.72 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.343e-06/2.493, allocations: 1.844 kB / 404.5 MB, free: 11.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.06443/2.558, allocations: 6.168 MB / 410.7 MB, free: 6.539 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/2.558, allocations: 4 kB / 410.7 MB, free: 6.535 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/2.558, allocations: 8 kB / 410.7 MB, free: 6.527 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06628/2.624, allocations: 6.124 MB / 416.8 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001695/2.626, allocations: 194.9 kB / 417 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01144/2.637, allocations: 3.302 MB / 420.3 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004643/2.642, allocations: 299.6 kB / 420.6 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000242/2.642, allocations: 44.66 kB / 420.6 MB, free: 13.86 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.0005289/2.643, allocations: 140.2 kB / 420.8 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002847/2.643, allocations: 75.06 kB / 420.9 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04938/2.693, allocations: 4.75 MB / 425.6 MB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.563e-05/2.693, allocations: 8 kB / 425.6 MB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.966e-06/2.693, allocations: 0 / 425.6 MB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.858e-05/2.693, allocations: 3.984 kB / 425.6 MB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002808/2.696, allocations: 1.153 MB / 426.8 MB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/2.696, allocations: 4 kB / 426.8 MB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001337/2.697, allocations: 143.8 kB / 426.9 MB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06616/2.763, allocations: 6.123 MB / 433 MB, free: 2.078 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000333/2.764, allocations: 15.97 kB / 433.1 MB, free: 2.062 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0517/2.815, allocations: 8.623 MB / 441.7 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/2.815, allocations: 0 / 441.7 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05148/2.867, allocations: 5.484 MB / 447.2 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05459/2.921, allocations: 6.694 MB / 453.9 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009079/2.922, allocations: 280 kB / 454.1 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003487/2.923, allocations: 8 kB / 454.1 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004189/2.927, allocations: 287.8 kB / 454.4 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004494/2.927, allocations: 100.6 kB / 454.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002089/2.928, allocations: 31.98 kB / 454.5 MB, free: 12.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0006149/2.928, allocations: 306.9 kB / 454.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002442/2.931, allocations: 288 kB / 455.1 MB, free: 11.8 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.0003802/2.931, allocations: 127.1 kB / 455.3 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007264/2.938, allocations: 1.556 MB / 456.8 MB, free: 10.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/2.938, allocations: 4 kB / 456.8 MB, free: 10.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007832/2.946, allocations: 1.169 MB / 458 MB, free: 8.918 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/2.947, allocations: 86.03 kB / 458.1 MB, free: 8.832 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01355/2.961, allocations: 2.09 MB / 460.2 MB, free: 6.754 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/2.962, allocations: 1.008 MB / 461.2 MB, free: 5.719 MB / 362.7 MB Notification: Performance of SimCode: time 1.222e-06/2.962, allocations: 0 / 461.2 MB, free: 5.719 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat