Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadModel(Modelica): time 1.941/1.941, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.274e-05/2.281e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.266, allocations: 44.5 MB / 294.1 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1406/0.4067, allocations: 74.62 MB / 368.7 MB, free: 7.379 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/0.407, allocations: 75.95 kB / 368.8 MB, free: 7.305 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03877/0.4458, allocations: 10.05 MB / 378.8 MB, free: 13.22 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.106e-06/0.4458, allocations: 0 / 378.8 MB, free: 13.22 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.524e-05/0.4459, allocations: 12 kB / 378.9 MB, free: 13.21 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002891/0.4488, allocations: 1.073 MB / 379.9 MB, free: 12.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.4488, allocations: 15.97 kB / 379.9 MB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002077/0.449, allocations: 75.14 kB / 380 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007899/0.4498, allocations: 427.3 kB / 380.4 MB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.098e-05/0.4499, allocations: 20 kB / 380.5 MB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.45, allocations: 32 kB / 380.5 MB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0015/0.4516, allocations: 0.5572 MB / 381 MB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.4531, allocations: 0.658 MB / 381.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.4531, allocations: 0 / 381.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.351e-05/0.4532, allocations: 0 / 381.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.745e-05/0.4533, allocations: 16 kB / 381.7 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006288/0.4596, allocations: 3.072 MB / 384.8 MB, free: 6.992 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00152/0.4611, allocations: 0.6663 MB / 385.5 MB, free: 6.273 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007104/0.4618, allocations: 286.5 kB / 385.7 MB, free: 5.988 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.51e-05/0.4619, allocations: 20.48 kB / 385.8 MB, free: 5.969 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007352/0.4627, allocations: 308.4 kB / 386.1 MB, free: 5.656 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 4.077e-06/0.4627, allocations: 0 / 386.1 MB, free: 5.656 MB / 330.7 MB Notification: Performance of matching and sorting (n=50): time 0.001298/0.464, allocations: 491.4 kB / 386.5 MB, free: 5.168 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001711/0.4642, allocations: 261.5 kB / 386.8 MB, free: 4.852 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006832/0.4649, allocations: 405.1 kB / 387.2 MB, free: 4.449 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.489e-05/0.465, allocations: 33.7 kB / 387.2 MB, free: 4.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003392/0.4653, allocations: 378 kB / 387.6 MB, free: 4.039 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002012/0.4656, allocations: 165.6 kB / 387.8 MB, free: 3.875 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.338e-05/0.4656, allocations: 0 / 387.8 MB, free: 3.875 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.4658, allocations: 334.8 kB / 388.1 MB, free: 3.539 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006073/0.4664, allocations: 241.5 kB / 388.3 MB, free: 3.305 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008407/0.4673, allocations: 486.3 kB / 388.8 MB, free: 2.719 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006366/0.4679, allocations: 262 kB / 389 MB, free: 2.461 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.204e-06/0.468, allocations: 0 / 389 MB, free: 2.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001781/0.4698, allocations: 0.6787 MB / 389.7 MB, free: 1.773 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.4e-05/0.4699, allocations: 63.41 kB / 389.8 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/0.4699, allocations: 8.094 kB / 389.8 MB, free: 1.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.3e-05/0.4699, allocations: 12 kB / 389.8 MB, free: 1.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/0.4714, allocations: 259.6 kB / 390.1 MB, free: 1.426 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.409e-05/0.4714, allocations: 15.94 kB / 390.1 MB, free: 1.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.4727, allocations: 199.1 kB / 390.3 MB, free: 1.215 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001015/0.4729, allocations: 39.98 kB / 390.3 MB, free: 1.176 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002368/0.4731, allocations: 132.5 kB / 390.4 MB, free: 1.039 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.4733, allocations: 55.34 kB / 390.5 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001928/0.4735, allocations: 65.27 kB / 390.6 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.584e-06/0.4735, allocations: 4 kB / 390.6 MB, free: 0.918 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.4735, allocations: 7.891 kB / 390.6 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.964e-06/0.4735, allocations: 0 / 390.6 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002768/0.4763, allocations: 1.28 MB / 391.9 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.658e-06/0.4763, allocations: 0 / 391.9 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.4775, allocations: 179.8 kB / 392 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.404e-05/0.4775, allocations: 8 kB / 392 MB, free: 15.4 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-05/0.4776, allocations: 3.984 kB / 392 MB, free: 15.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.189e-06/0.4776, allocations: 4 kB / 392 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.4776, allocations: 0 / 392 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.4795, allocations: 0.8574 MB / 392.9 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002117/0.4798, allocations: 140.3 kB / 393 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/0.4799, allocations: 7.953 kB / 393 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009849/0.4809, allocations: 135.9 kB / 393.2 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001914/0.4811, allocations: 52.36 kB / 393.2 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.57e-05/0.4812, allocations: 23.92 kB / 393.3 MB, free: 14.15 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005015/0.4817, allocations: 295 kB / 393.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.24e-07/0.4817, allocations: 4 kB / 393.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008209/0.4826, allocations: 147.7 kB / 393.7 MB, free: 13.71 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002276/0.4828, allocations: 111.2 kB / 393.8 MB, free: 13.59 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.4844, allocations: 0.6835 MB / 394.5 MB, free: 12.89 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.349e-06/0.4844, allocations: 192 / 394.5 MB, free: 12.89 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006231/0.485, allocations: 265.6 kB / 394.7 MB, free: 12.62 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005513/0.4856, allocations: 58 kB / 394.8 MB, free: 12.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002274/0.4879, allocations: 0.8472 MB / 395.6 MB, free: 11.69 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006234/0.4885, allocations: 0.8783 MB / 396.5 MB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004031/0.4889, allocations: 51.44 kB / 396.6 MB, free: 10.73 MB / 346.7 MB Notification: Performance of SimCode: time 1.609e-06/0.489, allocations: 0 / 396.6 MB, free: 10.73 MB / 346.7 MB Notification: Performance of Templates: time 0.01609/0.5051, allocations: 8.196 MB / 404.8 MB, free: 2.559 MB / 346.7 MB "Warning: Resultfile and Reference have different end time points! Reffile[5059]=0.000000 File[1]=0.000000 " Variables in the reference:time,Nand.C4.v,Nand.C7.v Variables in the result:Gnd1.p.i,Gnd1.p.v,Gnd4.p.i,Gnd4.p.v,Gnd5.p.i,Gnd5.p.v,Nand.C4.C,der(Nand.C4.v),Nand.C4.i,Nand.C4.n.i,Nand.C4.n.v,Nand.C4.p.i,Nand.C4.p.v,Nand.C4.v,Nand.C7.C,der(Nand.C7.v),Nand.C7.i,Nand.C7.n.i,Nand.C7.n.v,Nand.C7.p.i,Nand.C7.p.v,Nand.C7.v,Nand.Gnd.p.i,Nand.Gnd.p.v,Nand.Gnd2.p.i,Nand.Gnd2.p.v,Nand.Gnd3.p.i,Nand.Gnd3.p.v,Nand.Gnd6.p.i,Nand.Gnd6.p.v,Nand.Gnd7.p.i,Nand.Gnd7.p.v,Nand.Gnd8.p.i,Nand.Gnd8.p.v,Nand.TN1.B.i,Nand.TN1.B.v,Nand.TN1.Beta,Nand.TN1.D.i,Nand.TN1.D.v,Nand.TN1.G.i,Nand.TN1.G.v,Nand.TN1.K2,Nand.TN1.K5,Nand.TN1.L,Nand.TN1.LossPower,Nand.TN1.RDS,Nand.TN1.S.i,Nand.TN1.S.v,Nand.TN1.T,Nand.TN1.T_heatPort,Nand.TN1.Vt,Nand.TN1.W,Nand.TN1.dL,Nand.TN1.dW,Nand.TN1.gds,Nand.TN1.id,Nand.TN1.ubs,Nand.TN1.ud,Nand.TN1.uds,Nand.TN1.ugst,Nand.TN1.us,Nand.TN1.useHeatPort,Nand.TN1.v,Nand.TN2.B.i,Nand.TN2.B.v,Nand.TN2.Beta,Nand.TN2.D.i,Nand.TN2.D.v,Nand.TN2.G.i,Nand.TN2.G.v,Nand.TN2.K2,Nand.TN2.K5,Nand.TN2.L,Nand.TN2.LossPower,Nand.TN2.RDS,Nand.TN2.S.i,Nand.TN2.S.v,Nand.TN2.T,Nand.TN2.T_heatPort,Nand.TN2.Vt,Nand.TN2.W,Nand.TN2.dL,Nand.TN2.dW,Nand.TN2.gds,Nand.TN2.id,Nand.TN2.ubs,Nand.TN2.ud,Nand.TN2.uds,Nand.TN2.ugst,Nand.TN2.us,Nand.TN2.useHeatPort,Nand.TN2.v,Nand.TP1.B.i,Nand.TP1.B.v,Nand.TP1.Beta,Nand.TP1.D.i,Nand.TP1.D.v,Nand.TP1.G.i,Nand.TP1.G.v,Nand.TP1.K2,Nand.TP1.K5,Nand.TP1.L,Nand.TP1.LossPower,Nand.TP1.RDS,Nand.TP1.S.i,Nand.TP1.S.v,Nand.TP1.T,Nand.TP1.T_heatPort,Nand.TP1.Vt,Nand.TP1.W,Nand.TP1.dL,Nand.TP1.dW,Nand.TP1.gds,Nand.TP1.id,Nand.TP1.ubs,Nand.TP1.ud,Nand.TP1.uds,Nand.TP1.ugst,Nand.TP1.us,Nand.TP1.useHeatPort,Nand.TP1.v,Nand.TP2.B.i,Nand.TP2.B.v,Nand.TP2.Beta,Nand.TP2.D.i,Nand.TP2.D.v,Nand.TP2.G.i,Nand.TP2.G.v,Nand.TP2.K2,Nand.TP2.K5,Nand.TP2.L,Nand.TP2.LossPower,Nand.TP2.RDS,Nand.TP2.S.i,Nand.TP2.S.v,Nand.TP2.T,Nand.TP2.T_heatPort,Nand.TP2.Vt,Nand.TP2.W,Nand.TP2.dL,Nand.TP2.dW,Nand.TP2.gds,Nand.TP2.id,Nand.TP2.ubs,Nand.TP2.ud,Nand.TP2.uds,Nand.TP2.ugst,Nand.TP2.us,Nand.TP2.useHeatPort,Nand.TP2.v,Nand.Vdd.i,Nand.Vdd.v,Nand.x1.i,Nand.x1.v,Nand.x2.i,Nand.x2.v,Nand.y.i,Nand.y.v,VDD.V,VDD.duration,VDD.i,VDD.n.i,VDD.n.v,VDD.offset,VDD.p.i,VDD.p.v,VDD.signalSource.duration,VDD.signalSource.height,VDD.signalSource.offset,VDD.signalSource.startTime,VDD.signalSource.y,VDD.startTime,VDD.v,VIN1.V,VIN1.falling,VIN1.i,VIN1.n.i,VIN1.n.v,VIN1.nperiod,VIN1.offset,VIN1.p.i,VIN1.p.v,VIN1.period,VIN1.rising,VIN1.signalSource.T_falling,VIN1.signalSource.T_rising,VIN1.signalSource.T_start,VIN1.signalSource.T_width,VIN1.signalSource.amplitude,VIN1.signalSource.count,VIN1.signalSource.falling,VIN1.signalSource.nperiod,VIN1.signalSource.offset,VIN1.signalSource.period,VIN1.signalSource.rising,VIN1.signalSource.startTime,VIN1.signalSource.width,VIN1.signalSource.y,VIN1.startTime,VIN1.v,VIN1.width,VIN2.V,VIN2.falling,VIN2.i,VIN2.n.i,VIN2.n.v,VIN2.nperiod,VIN2.offset,VIN2.p.i,VIN2.p.v,VIN2.period,VIN2.rising,VIN2.signalSource.T_falling,VIN2.signalSource.T_rising,VIN2.signalSource.T_start,VIN2.signalSource.T_width,VIN2.signalSource.amplitude,VIN2.signalSource.count,VIN2.signalSource.falling,VIN2.signalSource.nperiod,VIN2.signalSource.offset,VIN2.signalSource.period,VIN2.signalSource.rising,VIN2.signalSource.startTime,VIN2.signalSource.width,VIN2.signalSource.y,VIN2.startTime,VIN2.v,VIN2.width,_D_whenCondition1,_D_whenCondition2,time