Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_1_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.757/1.757, allocations: 171.2 MB / 178.1 MB, free: 8.277 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2017/1.958, allocations: 41.1 MB / 219.2 MB, free: 11.19 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/2.061, allocations: 38.77 MB / 258 MB, free: 4.348 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3237/2.384, allocations: 71.07 MB / 329.1 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/2.385, allocations: 70.45 kB / 329.2 MB, free: 0.9414 MB / 266.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.1099/2.495, allocations: 15.18 MB / 344.3 MB, free: 3.645 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/2.495, allocations: 8 kB / 344.3 MB, free: 3.637 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000384/2.495, allocations: 94.97 kB / 344.4 MB, free: 3.543 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002321/2.497, allocations: 0.5828 MB / 345 MB, free: 3 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.906e-05/2.498, allocations: 20 kB / 345 MB, free: 2.98 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001775/2.498, allocations: 39.98 kB / 345.1 MB, free: 2.941 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001978/2.5, allocations: 0.5956 MB / 345.7 MB, free: 2.586 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/2.501, allocations: 0.5348 MB / 346.2 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.872e-05/2.502, allocations: 3.938 kB / 346.2 MB, free: 2.203 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001016/2.502, allocations: 3.938 kB / 346.2 MB, free: 2.199 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.444e-05/2.502, allocations: 16 kB / 346.2 MB, free: 2.184 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007281/2.509, allocations: 2.59 MB / 348.8 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001409/2.51, allocations: 457.3 kB / 349.3 MB, free: 15.69 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008014/2.511, allocations: 287.4 kB / 349.5 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.865e-05/2.511, allocations: 12.42 kB / 349.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001001/2.512, allocations: 365.1 kB / 349.9 MB, free: 15.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 3.196e-06/2.512, allocations: 0 / 349.9 MB, free: 15.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.118/2.63, allocations: 10.66 MB / 360.6 MB, free: 5.883 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/2.63, allocations: 145.3 kB / 360.7 MB, free: 5.711 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008953/2.631, allocations: 412.5 kB / 361.1 MB, free: 5.391 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000378/2.632, allocations: 29.7 kB / 361.1 MB, free: 5.355 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003521/2.632, allocations: 309.7 kB / 361.5 MB, free: 5.082 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005605/2.633, allocations: 296.3 kB / 361.7 MB, free: 4.824 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/2.633, allocations: 0 / 361.7 MB, free: 4.824 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002374/2.633, allocations: 386.2 kB / 362.1 MB, free: 4.469 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001969/2.635, allocations: 0.529 MB / 362.6 MB, free: 4.188 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003368/2.639, allocations: 0.73 MB / 363.4 MB, free: 3.641 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002363/2.641, allocations: 0.569 MB / 363.9 MB, free: 3.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/2.641, allocations: 0 / 363.9 MB, free: 3.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0671/2.708, allocations: 6.184 MB / 370.1 MB, free: 12.87 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.692e-05/2.708, allocations: 4 kB / 370.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.464e-05/2.708, allocations: 8 kB / 370.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07655/2.785, allocations: 6.142 MB / 376.3 MB, free: 6.699 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002441/2.787, allocations: 195.8 kB / 376.5 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01777/2.805, allocations: 3.329 MB / 379.8 MB, free: 3.125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006561/2.812, allocations: 303.7 kB / 380.1 MB, free: 2.828 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004654/2.812, allocations: 55.88 kB / 380.2 MB, free: 2.773 MB / 314.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.0007454/2.813, allocations: 121.3 kB / 380.3 MB, free: 2.648 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004453/2.814, allocations: 79.06 kB / 380.4 MB, free: 2.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0607/2.874, allocations: 4.761 MB / 385.1 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.787e-05/2.874, allocations: 8 kB / 385.1 MB, free: 13.78 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/2.875, allocations: 4 kB / 385.1 MB, free: 13.78 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.144e-05/2.875, allocations: 7.969 kB / 385.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/2.877, allocations: 1.154 MB / 386.3 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/2.877, allocations: 0 / 386.3 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001276/2.879, allocations: 143.9 kB / 386.4 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06755/2.946, allocations: 6.154 MB / 392.6 MB, free: 6.266 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005021/2.947, allocations: 7.969 kB / 392.6 MB, free: 6.258 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06817/3.015, allocations: 8.695 MB / 401.3 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/3.015, allocations: 0 / 401.3 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07439/3.09, allocations: 5.493 MB / 406.8 MB, free: 7.879 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05158/3.141, allocations: 6.71 MB / 413.5 MB, free: 1.145 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003124/3.142, allocations: 148.1 kB / 413.6 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003736/3.142, allocations: 0 / 413.6 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004121/3.146, allocations: 299.8 kB / 413.9 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005126/3.147, allocations: 104.6 kB / 414 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002328/3.147, allocations: 27.98 kB / 414.1 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0006498/3.148, allocations: 310.9 kB / 414.4 MB, free: 264 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.1165/3.264, allocations: 292.5 kB / 414.6 MB, free: 154.3 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.0005664/3.265, allocations: 119.7 kB / 414.8 MB, free: 154.2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006453/3.271, allocations: 1.559 MB / 416.3 MB, free: 154.2 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/3.271, allocations: 0 / 416.3 MB, free: 154.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007056/3.278, allocations: 1.169 MB / 417.5 MB, free: 154.1 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/3.279, allocations: 87.02 kB / 417.6 MB, free: 154.1 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0121/3.292, allocations: 2.104 MB / 419.7 MB, free: 153.8 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007606/3.292, allocations: 1.008 MB / 420.7 MB, free: 153.1 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/3.292, allocations: 0 / 420.7 MB, free: 153.1 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat