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"}) Notification: Performance of loadModel(Modelica): time 1.802/1.802, allocations: 171.3 MB / 178.4 MB, free: 176 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.93e-05/2.951e-05, allocations: 4 kB / 219.6 MB, free: 6.957 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3145, allocations: 38.77 MB / 258.3 MB, free: 12.19 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.4489, allocations: 70.84 MB / 329.2 MB, free: 6.953 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.4491, allocations: 63.97 kB / 329.2 MB, free: 6.891 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07172/0.5209, allocations: 13.83 MB / 343.1 MB, free: 9.012 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5209, allocations: 0 / 343.1 MB, free: 9.012 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.13e-05/0.521, allocations: 16 kB / 343.1 MB, free: 8.996 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.006458/0.5275, allocations: 1.33 MB / 344.4 MB, free: 7.605 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/0.5275, allocations: 12.03 kB / 344.4 MB, free: 7.594 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003976/0.5279, allocations: 86.97 kB / 344.5 MB, free: 7.508 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002151/0.5301, allocations: 0.5779 MB / 345.1 MB, free: 6.883 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4e-05/0.5302, allocations: 23.94 kB / 345.1 MB, free: 6.859 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001734/0.5303, allocations: 44 kB / 345.2 MB, free: 6.816 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001807/0.5322, allocations: 0.5962 MB / 345.7 MB, free: 6.223 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/0.5337, allocations: 0.5311 MB / 346.3 MB, free: 5.684 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.71e-05/0.5338, allocations: 4 kB / 346.3 MB, free: 5.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.539e-05/0.5339, allocations: 0 / 346.3 MB, free: 5.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.103e-05/0.5339, allocations: 16 kB / 346.3 MB, free: 5.664 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006753/0.5407, allocations: 2.25 MB / 348.6 MB, free: 3.336 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.5421, allocations: 499.6 kB / 349 MB, free: 2.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007359/0.5428, allocations: 286.1 kB / 349.3 MB, free: 2.559 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.86e-05/0.543, allocations: 20.42 kB / 349.3 MB, free: 2.539 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009592/0.5439, allocations: 384.7 kB / 349.7 MB, free: 2.137 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 3.507e-06/0.5439, allocations: 0 / 349.7 MB, free: 2.137 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.08317/0.6271, allocations: 10.39 MB / 360.1 MB, free: 7.676 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.6273, allocations: 145.3 kB / 360.2 MB, free: 7.504 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000804/0.6281, allocations: 410.2 kB / 360.6 MB, free: 7.094 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002595/0.6284, allocations: 33.7 kB / 360.7 MB, free: 7.055 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003889/0.6288, allocations: 375.8 kB / 361 MB, free: 6.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004507/0.6292, allocations: 299.5 kB / 361.3 MB, free: 6.383 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.6294, allocations: 4 kB / 361.3 MB, free: 6.379 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002267/0.6297, allocations: 382.8 kB / 361.7 MB, free: 5.996 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001531/0.6312, allocations: 0.526 MB / 362.2 MB, free: 5.469 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00172/0.6329, allocations: 0.7285 MB / 363 MB, free: 4.664 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001858/0.6348, allocations: 0.5658 MB / 363.5 MB, free: 4.102 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.453e-06/0.6348, allocations: 4 kB / 363.5 MB, free: 4.098 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.2798/0.9146, allocations: 6.066 MB / 369.6 MB, free: 90.11 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.598e-05/0.9147, allocations: 61.81 kB / 369.7 MB, free: 90.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/0.9148, allocations: 4.781 kB / 369.7 MB, free: 90.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0506/0.9654, allocations: 5.979 MB / 375.7 MB, free: 90.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.9667, allocations: 185.2 kB / 375.8 MB, free: 90.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007658/0.9744, allocations: 3.175 MB / 379 MB, free: 88.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003499/0.978, allocations: 272.6 kB / 379.3 MB, free: 88.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001921/0.9782, allocations: 47.09 kB / 379.3 MB, free: 88.96 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.0004783/0.9787, allocations: 142.2 kB / 379.5 MB, free: 88.84 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0404/1.019, allocations: 5.034 MB / 384.5 MB, free: 88.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003812/1.02, allocations: 78.66 kB / 384.6 MB, free: 88.21 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03638/1.056, allocations: 4.659 MB / 389.2 MB, free: 84.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.497e-05/1.056, allocations: 8 kB / 389.2 MB, free: 84.15 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/1.056, allocations: 0 / 389.2 MB, free: 84.15 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-05/1.056, allocations: 7.969 kB / 389.2 MB, free: 84.14 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002086/1.058, allocations: 1.163 MB / 390.4 MB, free: 82.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/1.058, allocations: 4 kB / 390.4 MB, free: 82.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009982/1.059, allocations: 129.9 kB / 390.5 MB, free: 82.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04953/1.109, allocations: 5.985 MB / 396.5 MB, free: 76.87 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002613/1.109, allocations: 11.97 kB / 396.5 MB, free: 76.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03755/1.147, allocations: 8.692 MB / 405.2 MB, free: 68.04 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.147, allocations: 3.719 kB / 405.2 MB, free: 68.04 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08984/1.237, allocations: 5.399 MB / 410.6 MB, free: 62.63 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002675/1.237, allocations: 144.2 kB / 410.8 MB, free: 62.47 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004002/1.237, allocations: 4 kB / 410.8 MB, free: 62.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003345/1.241, allocations: 271.7 kB / 411 MB, free: 62.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007424/1.241, allocations: 142.3 kB / 411.2 MB, free: 62.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000161/1.242, allocations: 27.97 kB / 411.2 MB, free: 62.04 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004587/1.242, allocations: 310.9 kB / 411.5 MB, free: 61.74 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.242, allocations: 0 / 411.5 MB, free: 61.74 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001345/1.243, allocations: 298.2 kB / 411.8 MB, free: 61.45 MB / 314.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.03833/1.282, allocations: 5.951 MB / 417.8 MB, free: 55.47 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005415/1.287, allocations: 1.616 MB / 419.4 MB, free: 53.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/1.287, allocations: 1.125 kB / 419.4 MB, free: 53.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006132/1.293, allocations: 1.242 MB / 420.6 MB, free: 52.58 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/1.294, allocations: 92.59 kB / 420.7 MB, free: 52.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009758/1.304, allocations: 1.967 MB / 422.7 MB, free: 50.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/1.305, allocations: 0.9743 MB / 423.6 MB, free: 49.5 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004468/1.305, allocations: 51.2 kB / 423.7 MB, free: 49.46 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004578/1.306, allocations: 271.3 kB / 424 MB, free: 49.2 MB / 314.7 MB Notification: Performance of SimCode: time 1.112e-06/1.306, allocations: 4 kB / 424 MB, free: 49.19 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1031/1.409, allocations: 33.42 MB / 457.4 MB, free: 15.79 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002042/1.409, allocations: 137.5 kB / 457.5 MB, free: 15.61 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.139/5.548, allocations: 0 / 457.5 MB, free: 15.61 MB / 314.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