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"}) Notification: Performance of loadModel(Modelica): time 2.594/2.594, allocations: 195 MB / 202.9 MB, free: 6.715 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.74e-05/3.756e-05, allocations: 3.406 kB / 249.8 MB, free: 5.199 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1262, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5172/0.6434, allocations: 75.97 MB / 370.2 MB, free: 6.965 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.6438, allocations: 73.95 kB / 370.3 MB, free: 6.965 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08827/0.732, allocations: 13.8 MB / 384.1 MB, free: 19.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.506e-06/0.7321, allocations: 0 / 384.1 MB, free: 19.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001003/0.7322, allocations: 15.22 kB / 384.1 MB, free: 19.45 MB / 314.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.01157/0.7438, allocations: 1.328 MB / 385.5 MB, free: 18.6 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.231e-05/0.7439, allocations: 11.56 kB / 385.5 MB, free: 18.6 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005109/0.7445, allocations: 82.19 kB / 385.5 MB, free: 18.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005403/0.745, allocations: 89.8 kB / 385.6 MB, free: 18.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004122/0.7492, allocations: 0.5813 MB / 386.2 MB, free: 18.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.7494, allocations: 24.56 kB / 386.2 MB, free: 18.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004201/0.7498, allocations: 46.56 kB / 386.3 MB, free: 18.11 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003367/0.7532, allocations: 0.5934 MB / 386.9 MB, free: 18.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002915/0.7562, allocations: 0.5286 MB / 387.4 MB, free: 17.95 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.224e-05/0.7563, allocations: 3.812 kB / 387.4 MB, free: 17.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002003/0.7565, allocations: 0 / 387.4 MB, free: 17.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.354e-05/0.7566, allocations: 19.58 kB / 387.4 MB, free: 17.95 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01268/0.7693, allocations: 2.241 MB / 389.7 MB, free: 16.83 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00234/0.7717, allocations: 489.3 kB / 390.2 MB, free: 16.78 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001327/0.7731, allocations: 286 kB / 390.4 MB, free: 16.76 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001292/0.7733, allocations: 11.48 kB / 390.4 MB, free: 16.76 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001659/0.7749, allocations: 379 kB / 390.8 MB, free: 16.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 7.113e-06/0.775, allocations: 7.969 kB / 390.8 MB, free: 16.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.1908/0.9658, allocations: 10.35 MB / 401.2 MB, free: 13.12 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.966, allocations: 144.6 kB / 401.3 MB, free: 12.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008698/0.9669, allocations: 405.4 kB / 401.7 MB, free: 12.81 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003247/0.9672, allocations: 33.47 kB / 401.7 MB, free: 12.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004521/0.9677, allocations: 384.3 kB / 402.1 MB, free: 12.53 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005544/0.9682, allocations: 297.5 kB / 402.4 MB, free: 12.31 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001982/0.9685, allocations: 7.844 kB / 402.4 MB, free: 12.3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002622/0.9687, allocations: 380.6 kB / 402.8 MB, free: 11.97 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001903/0.9707, allocations: 0.5252 MB / 403.3 MB, free: 11.96 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002086/0.9728, allocations: 0.7313 MB / 404 MB, free: 11.72 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002259/0.975, allocations: 0.5576 MB / 404.6 MB, free: 11.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.9751, allocations: 3.875 kB / 404.6 MB, free: 11.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.07009/1.045, allocations: 6.042 MB / 410.6 MB, free: 6.719 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/1.045, allocations: 63.39 kB / 410.7 MB, free: 6.645 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.079e-05/1.045, allocations: 4 kB / 410.7 MB, free: 6.641 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07148/1.117, allocations: 5.958 MB / 416.7 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001884/1.119, allocations: 183.6 kB / 416.8 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01131/1.13, allocations: 3.163 MB / 420 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005025/1.135, allocations: 271.5 kB / 420.3 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003736/1.136, allocations: 46.84 kB / 420.3 MB, free: 14.31 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.0006714/1.136, allocations: 135.9 kB / 420.4 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004106/1.137, allocations: 79.06 kB / 420.5 MB, free: 14.1 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05247/1.189, allocations: 4.659 MB / 425.2 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.353e-05/1.189, allocations: 12 kB / 425.2 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/1.189, allocations: 0 / 425.2 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.033e-05/1.189, allocations: 3.984 kB / 425.2 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003319/1.193, allocations: 1.148 MB / 426.3 MB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/1.193, allocations: 0 / 426.3 MB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00158/1.194, allocations: 127.9 kB / 426.5 MB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07008/1.264, allocations: 5.963 MB / 432.4 MB, free: 2.875 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003642/1.265, allocations: 15.97 kB / 432.5 MB, free: 2.859 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05313/1.318, allocations: 8.643 MB / 441.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/1.318, allocations: 3.938 kB / 441.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05235/1.37, allocations: 5.369 MB / 446.5 MB, free: 4.684 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/1.372, allocations: 292 kB / 446.8 MB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003156/1.372, allocations: 4 kB / 446.8 MB, free: 4.375 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004441/1.376, allocations: 263.7 kB / 447 MB, free: 4.117 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000931/1.377, allocations: 136.6 kB / 447.1 MB, free: 3.984 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002485/1.378, allocations: 39.91 kB / 447.2 MB, free: 3.945 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007333/1.378, allocations: 303 kB / 447.5 MB, free: 3.648 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.378, allocations: 0 / 447.5 MB, free: 3.648 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001908/1.38, allocations: 292 kB / 447.8 MB, free: 3.363 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.0548/1.435, allocations: 5.945 MB / 453.7 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008761/1.444, allocations: 1.612 MB / 455.3 MB, free: 11.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/1.444, allocations: 7.938 kB / 455.3 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008666/1.453, allocations: 1.241 MB / 456.6 MB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/1.454, allocations: 90.02 kB / 456.7 MB, free: 10.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01353/1.467, allocations: 1.948 MB / 458.6 MB, free: 8.414 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008146/1.468, allocations: 0.9705 MB / 459.6 MB, free: 7.414 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000604/1.469, allocations: 54.08 kB / 459.6 MB, free: 7.359 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006965/1.47, allocations: 263.3 kB / 459.9 MB, free: 7.102 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/1.47, allocations: 0 / 459.9 MB, free: 7.102 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.35/1.82, allocations: 34.72 MB / 494.6 MB, free: 4.391 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000455/1.82, allocations: 150.4 kB / 494.8 MB, free: 4.195 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.916/7.736, allocations: 0 / 494.8 MB, free: 4.195 MB / 394.7 MB "" Variables in the reference:time,HeatCapacitor1.T Variables in the result:C1.C,C1.i,C1.n.i,C1.n.v,C1.p.i,C1.p.v,C1.v,C2.C,C2.i,C2.n.i,C2.n.v,C2.p.i,C2.p.v,C2.v,C3.C,C3.i,C3.n.i,C3.n.v,C3.p.i,C3.p.v,C3.v,CapVal,Gnd.p.i,Gnd.p.v,Gnd1.p.i,Gnd1.p.v,Gnd2.p.i,Gnd2.p.v,Gnd3.p.i,Gnd3.p.v,Gnd4.p.i,Gnd4.p.v,Gnd5.p.i,Gnd5.p.v,Gnd6.p.i,Gnd6.p.v,Gnd7.p.i,Gnd7.p.v,HeatCapacitor1.C,HeatCapacitor1.T,HeatCapacitor1.der_T,HeatCapacitor1.port.Q_flow,HeatCapacitor1.port.T,R1.LossPower,R1.R,R1.R_actual,R1.T,R1.T_heatPort,R1.T_ref,R1.alpha,R1.i,R1.n.i,R1.n.v,R1.p.i,R1.p.v,R1.useHeatPort,R1.v,R2.LossPower,R2.R,R2.R_actual,R2.T,R2.T_heatPort,R2.T_ref,R2.alpha,R2.i,R2.n.i,R2.n.v,R2.p.i,R2.p.v,R2.useHeatPort,R2.v,RI.LossPower,RI.R,RI.R_actual,RI.T,RI.T_heatPort,RI.T_ref,RI.alpha,RI.i,RI.n.i,RI.n.v,RI.p.i,RI.p.v,RI.useHeatPort,RI.v,T1.B.i,T1.B.v,T1.Bf,T1.Br,T1.C.i,T1.C.v,T1.Capcjc,T1.Capcje,T1.Ccs,T1.Cjc,T1.Cje,T1.E.i,T1.E.v,T1.EG,T1.EMax,T1.EMin,T1.ExMax,T1.ExMin,T1.Gbc,T1.Gbe,T1.Is,T1.LossPower,T1.Mc,T1.Me,T1.NF,T1.NR,T1.Phic,T1.Phie,T1.T,T1.T_heatPort,T1.Tauf,T1.Taur,T1.Tnom,T1.Vak,T1.XTB,T1.XTI,T1.bf_t,T1.br_t,T1.cbc,T1.cbe,T1.heatPort.Q_flow,T1.heatPort.T,T1.hexp,T1.htempexp,T1.ibc,T1.ibe,T1.is_t,T1.qbk,T1.useHeatPort,T1.vbc,T1.vbe,T1.vt_t,T2.B.i,T2.B.v,T2.Bf,T2.Br,T2.C.i,T2.C.v,T2.Capcjc,T2.Capcje,T2.Ccs,T2.Cjc,T2.Cje,T2.E.i,T2.E.v,T2.EG,T2.EMax,T2.EMin,T2.ExMax,T2.ExMin,T2.Gbc,T2.Gbe,T2.Is,T2.LossPower,T2.Mc,T2.Me,T2.NF,T2.NR,T2.Phic,T2.Phie,T2.T,T2.T_heatPort,T2.Tauf,T2.Taur,T2.Tnom,T2.Vak,T2.XTB,T2.XTI,T2.bf_t,T2.br_t,T2.cbc,T2.cbe,T2.heatPort.Q_flow,T2.heatPort.T,T2.hexp,T2.htempexp,T2.ibc,T2.ibe,T2.is_t,T2.qbk,T2.useHeatPort,T2.vbc,T2.vbe,T2.vt_t,TC1.G,TC1.Q_flow,TC1.dT,TC1.port_a.Q_flow,TC1.port_a.T,TC1.port_b.Q_flow,TC1.port_b.T,TC2.G,TC2.Q_flow,TC2.dT,TC2.port_a.Q_flow,TC2.port_a.T,TC2.port_b.Q_flow,TC2.port_b.T,V.V,V.duration,V.i,V.n.i,V.n.v,V.offset,V.p.i,V.p.v,V.signalSource.duration,V.signalSource.height,V.signalSource.offset,V.signalSource.startTime,V.signalSource.y,V.startTime,V.v,V1.V,V1.falling,V1.i,V1.n.i,V1.n.v,V1.nperiod,V1.offset,V1.p.i,V1.p.v,V1.period,V1.rising,V1.signalSource.T_falling,V1.signalSource.T_rising,V1.signalSource.T_start,V1.signalSource.T_width,V1.signalSource.amplitude,V1.signalSource.count,V1.signalSource.falling,V1.signalSource.nperiod,V1.signalSource.offset,V1.signalSource.period,V1.signalSource.rising,V1.signalSource.startTime,V1.signalSource.width,V1.signalSource.y,V1.startTime,V1.v,V1.width,V2.V,V2.falling,V2.i,V2.n.i,V2.n.v,V2.nperiod,V2.offset,V2.p.i,V2.p.v,V2.period,V2.rising,V2.signalSource.T_falling,V2.signalSource.T_rising,V2.signalSource.T_start,V2.signalSource.T_width,V2.signalSource.amplitude,V2.signalSource.count,V2.signalSource.falling,V2.signalSource.nperiod,V2.signalSource.offset,V2.signalSource.period,V2.signalSource.rising,V2.signalSource.startTime,V2.signalSource.width,V2.signalSource.y,V2.startTime,V2.v,V2.width,_D_cse1,_D_cse2,_D_cse3,_D_cse4,_D_whenCondition1,_D_whenCondition2,der(C2.v),der(HeatCapacitor1.T),der(R1.i),der(R1.v),der(R2.i),der(R2.v),der(RI.i),der(RI.v),der(T1.C.i),der(T1.T_heatPort),der(T1.bf_t),der(T1.br_t),der(T1.hexp),der(T1.htempexp),der(T1.ibc),der(T1.ibe),der(T1.is_t),der(T1.qbk),der(T1.vbc),der(T1.vbe),der(T1.vt_t),der(T2.C.i),der(T2.T_heatPort),der(T2.bf_t),der(T2.br_t),der(T2.hexp),der(T2.htempexp),der(T2.ibc),der(T2.ibe),der(T2.is_t),der(T2.qbk),der(T2.vbc),der(T2.vbe),der(T2.vt_t),der(TC1.Q_flow),der(TC1.dT),der(TC2.Q_flow),der(TC2.dT),der(V.v),der(V1.v),der(V2.v),tauVal,time