Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.124/2.124, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.694e-05/2.697e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3207, allocations: 44.49 MB / 294.2 MB, free: 14.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1442/0.465, allocations: 75.98 MB / 370.2 MB, free: 5.906 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.4653, allocations: 67.95 kB / 370.2 MB, free: 5.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07759/0.5429, allocations: 13.75 MB / 384 MB, free: 8.051 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.543, allocations: 3.938 kB / 384 MB, free: 8.047 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.746e-05/0.543, allocations: 16 kB / 384 MB, free: 8.031 MB / 330.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.007006/0.5501, allocations: 1.327 MB / 385.3 MB, free: 6.645 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.298e-05/0.5502, allocations: 8.031 kB / 385.3 MB, free: 6.637 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005487/0.5507, allocations: 94.92 kB / 385.4 MB, free: 6.543 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002473/0.5532, allocations: 0.574 MB / 386 MB, free: 5.926 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.821e-05/0.5533, allocations: 20 kB / 386 MB, free: 5.906 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002919/0.5537, allocations: 47.89 kB / 386.1 MB, free: 5.859 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002135/0.5558, allocations: 0.5962 MB / 386.7 MB, free: 5.266 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/0.5576, allocations: 0.535 MB / 387.2 MB, free: 4.719 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.74e-05/0.5577, allocations: 3.984 kB / 387.2 MB, free: 4.715 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.5578, allocations: 0 / 387.2 MB, free: 4.715 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.78e-05/0.5578, allocations: 19.95 kB / 387.2 MB, free: 4.695 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007979/0.5658, allocations: 2.243 MB / 389.5 MB, free: 2.367 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.5674, allocations: 487.9 kB / 389.9 MB, free: 1.883 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008222/0.5683, allocations: 278.2 kB / 390.2 MB, free: 1.605 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.076e-05/0.5684, allocations: 8.438 kB / 390.2 MB, free: 1.598 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001042/0.5695, allocations: 380.7 kB / 390.6 MB, free: 1.203 MB / 330.7 MB Notification: Performance of pre-optimization done (n=54): time 3.947e-06/0.5695, allocations: 0 / 390.6 MB, free: 1.203 MB / 330.7 MB Notification: Performance of matching and sorting (n=94): time 0.08643/0.656, allocations: 10.36 MB / 401 MB, free: 6.773 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/0.6562, allocations: 149.2 kB / 401.1 MB, free: 6.598 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008458/0.657, allocations: 406.2 kB / 401.5 MB, free: 6.191 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000322/0.6574, allocations: 29.7 kB / 401.5 MB, free: 6.156 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004028/0.6578, allocations: 414.2 kB / 401.9 MB, free: 5.746 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005666/0.6584, allocations: 299.5 kB / 402.2 MB, free: 5.449 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/0.6586, allocations: 0 / 402.2 MB, free: 5.449 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.6587, allocations: 354.8 kB / 402.6 MB, free: 5.094 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001636/0.6604, allocations: 0.5182 MB / 403.1 MB, free: 4.574 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001945/0.6624, allocations: 0.7291 MB / 403.8 MB, free: 3.773 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002047/0.6645, allocations: 0.5691 MB / 404.4 MB, free: 3.203 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.019e-05/0.6645, allocations: 0 / 404.4 MB, free: 3.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0522/0.7168, allocations: 6.01 MB / 410.4 MB, free: 13.17 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.7169, allocations: 71.39 kB / 410.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.7169, allocations: 4 kB / 410.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05494/0.7719, allocations: 5.947 MB / 416.4 MB, free: 7.125 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001409/0.7734, allocations: 179.7 kB / 416.6 MB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009233/0.7826, allocations: 3.157 MB / 419.8 MB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00396/0.7867, allocations: 279.6 kB / 420 MB, free: 3.465 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003486/0.7871, allocations: 43.97 kB / 420.1 MB, free: 3.422 MB / 362.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.0005358/0.7876, allocations: 145.1 kB / 420.2 MB, free: 3.27 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.2962/1.084, allocations: 5.009 MB / 425.2 MB, free: 108.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004437/1.084, allocations: 77.16 kB / 425.3 MB, free: 108.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03909/1.123, allocations: 4.643 MB / 429.9 MB, free: 108.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.655e-05/1.124, allocations: 13.64 kB / 430 MB, free: 108.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/1.124, allocations: 3.875 kB / 430 MB, free: 108.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.847e-05/1.124, allocations: 7.266 kB / 430 MB, free: 108.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002418/1.126, allocations: 1.149 MB / 431.1 MB, free: 107.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-05/1.126, allocations: 0 / 431.1 MB, free: 107.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/1.127, allocations: 130 kB / 431.2 MB, free: 107.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06088/1.188, allocations: 5.961 MB / 437.2 MB, free: 107.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003867/1.189, allocations: 13 kB / 437.2 MB, free: 107.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05535/1.244, allocations: 8.627 MB / 445.8 MB, free: 102.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.207e-06/1.244, allocations: 0 / 445.8 MB, free: 102.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03999/1.284, allocations: 5.383 MB / 451.2 MB, free: 97.83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008209/1.285, allocations: 286.6 kB / 451.5 MB, free: 97.53 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003638/1.285, allocations: 8 kB / 451.5 MB, free: 97.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003565/1.289, allocations: 263.8 kB / 451.8 MB, free: 97.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008263/1.29, allocations: 144.3 kB / 451.9 MB, free: 97.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001878/1.29, allocations: 29.34 kB / 451.9 MB, free: 97.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000526/1.291, allocations: 307 kB / 452.2 MB, free: 96.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.291, allocations: 0 / 452.2 MB, free: 96.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001594/1.292, allocations: 295 kB / 452.5 MB, free: 96.52 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.0396/1.332, allocations: 5.941 MB / 458.5 MB, free: 90.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006068/1.338, allocations: 1.617 MB / 460.1 MB, free: 88.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/1.338, allocations: 0 / 460.1 MB, free: 88.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006671/1.345, allocations: 1.237 MB / 461.3 MB, free: 87.67 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/1.346, allocations: 100.9 kB / 461.4 MB, free: 87.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01053/1.357, allocations: 1.98 MB / 463.4 MB, free: 85.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000434/1.357, allocations: 0.9626 MB / 464.4 MB, free: 84.58 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005867/1.358, allocations: 279.3 kB / 464.6 MB, free: 84.3 MB / 362.7 MB Notification: Performance of SimCode: time 1.383e-06/1.358, allocations: 0 / 464.6 MB, free: 84.3 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.024/4.381, allocations: 21.08 MB / 485.7 MB, free: 63.27 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat